map

inline fun <Type, R> GdxArray<Type>.map(transform: (Type) -> R): GdxArray<R>

Returns a GdxArray containing the results of applying the given transform function to each element in the original GdxArray.


inline fun <Key, Value, R> GdxMap<Key, Value>.map(transform: (ObjectMap.Entry<Key, Value>) -> R): GdxMap<Key, R>

Returns a GdxMap containing the results of applying the given transform function to each entry in the original GdxMap.


inline fun <Type, R> GdxSet<Type>.map(transform: (Type) -> R): GdxSet<R>

Returns a GdxSet containing the results of applying the given transform function to each entry in the original GdxSet.