mapTo

inline fun <Type, R, C : GdxArray<in R>> GdxArray<Type>.mapTo(destination: C, transform: (Type) -> R): C

Appends the results of applying transform to each element of this array to the destination array. Does not use GdxArray.iterator, so it can be safely nested.

Return

the destination array.