map

inline fun <T, R> Iterable<T>.map(transform: (T) -> R): List<R>(source)

Returns a list containing transform applied once to each element in iteration order.


inline fun <T, R> Collection<T>.map(transform: (T) -> R): List<R>(source)

Maps a collection in iteration order, reserving its known size for the result.