Did I miss something or there is no function for m...
# stdlib
b
Did I miss something or there is no function for mapping array to array? (there is only array to list)
m
I didn’t find one.
Copy code
inline fun <T, reified R> Array<out T>.mapToArray(transform: (T) -> R): Array<R> =
        Array<R>(size, { i -> transform(this[i]) })
👍 1
Array
has an
inline
constructor. Magic! 🎩