flatMapIndexedNotNull

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

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