mapToCollection

fun <R, C : MutableCollection<in R>> mapToCollection(destination: C, transform: (T) -> R): C

Map to the collection.

Return

MutableCollection the collection

Parameters

transform

the transform action