mapIndexed

@PerformancePitfall(message = "Very slow on remote execution algebras")
open fun StructureND<T>.mapIndexed(transform: C.(index: IntArray, T) -> T): StructureND<T>

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

Sources

Link copied to clipboard