mapTo

inline fun <T, R, C : MutableCollection<in R>> Iterable<T>.mapTo(destination: C, transform: (T) -> R): C(source)

Appends transformed elements to destination in iteration order and returns that destination.