filter

inline fun List<Int>.filter(predicate: (Int) -> Boolean): IntList(source)

Returns a IntList containing only elements matching the given predicate.


inline fun List<Long>.filter(predicate: (Long) -> Boolean): LongList(source)

Returns a LongList containing only elements matching the given predicate.


inline fun List<Float>.filter(predicate: (Float) -> Boolean): FloatList(source)

Returns a FloatList containing only elements matching the given predicate.


inline fun List<Double>.filter(predicate: (Double) -> Boolean): DoubleList(source)

Returns a DoubleList containing only elements matching the given predicate.