map

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

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

Sources

Link copied to clipboard