flatMapIndexedNotNull

inline fun <T, R> Iterable<T>.flatMapIndexedNotNull(transform: (index: Int, T) -> Iterable<R>?): List<R>

Returns a single list of all not null elements yielded from results of transform function being invoked on each element of original collection.

Sources

Katlib source
Link copied to clipboard