mapIndexed

open override fun StructureND<T>.mapIndexed(transform: A.(index: IntArray, T) -> T): BufferND<T>

Maps elements from one structure to another one by applying transform to them alongside with their indices.

Sources

Link copied to clipboard