api-docs / org.ktorm.entity / mapNotNullTo
mapNotNullTo
inline fun <E : Any, R : Any, C : MutableCollection<in R>> EntitySequence<E, *>.mapNotNullTo(
destination: C,
transform: (E) -> R?
): C
(source code)Apply the given transform function to each element in the original sequence
and append only the non-null results to the given destination.
The operation is terminal.
Since
3.0.0