flatMap

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

Returns a single GdxArray of all elements yielded from results of transform function being invoked on each entry of original GdxArray.


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

Returns a single GdxArray of all elements yielded from results of transform function being invoked on each entry of original GdxMap.


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

Returns a single GdxSet of all elements yielded from results of transform function being invoked on each element of original GdxSet.