map

inline fun <T, R> Array<out T>.map(transform: (T) -> R): Array<R>(source)

Returns an array containing the results of applying the given transform function to each element in the original array.