map
inline fun <T, R> Iterable<T>.map(
transform: (T) -> R
): List<R>
Returns a list containing the results of applying the given transform function to each element in the original collection.
inline fun <K, V, R> Map<out K, V>.map(
transform: (Entry<K, V>) -> R
): List<R>
Re