openrndr / org.openrndr.collections / kotlin.collections.Iterable

Extensions for kotlin.collections.Iterable

pflatMap

fun <T, R> Iterable<T>.pflatMap(transform: suspend (T) -> Iterable<R>): List<R>

pforEach

fun <T, R : Any> Iterable<T>.pforEach(transform: suspend (T) -> R?): Unit

pmap

fun <T, R> Iterable<T>.pmap(transform: suspend (T) -> R): List<R>

pmapNotNull

fun <T, R : Any> Iterable<T>.pmapNotNull(transform: suspend (T) -> R?): List<R>