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