api-docs / org.ktorm.entity / flatMapIndexedTo
flatMapIndexedTo
inline fun <E : Any, R, C : MutableCollection<in R>> EntitySequence<E, *>.flatMapIndexedTo(
destination: C,
transform: (index: Int, E) -> Iterable<R>
): C
(source code)Append all elements yielded from results of transform function being invoked on each element
and its index in the original sequence, to the given destination.
The operation is terminal.
Since
3.1.0