filter

inline fun <Type> GdxArray<Type>.filter(predicate: (Type) -> Boolean): GdxArray<Type>

Returns a GdxArray containing only elements matching the given predicate.


inline fun <Key, Value> GdxMap<Key, Value>.filter(predicate: (ObjectMap.Entry<Key, Value>) -> Boolean): GdxMap<Key, Value>

Returns a GdxMap containing only entries matching the given predicate.


inline fun <Type> GdxSet<Type>.filter(predicate: (Type) -> Boolean): GdxSet<Type>

Returns a GdxSet containing only elements matching the given predicate.