filter

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

Returns a IntList containing only elements matching the given predicate.


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

Returns a LongList containing only elements matching the given predicate.


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

Returns a FloatList containing only elements matching the given predicate.


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

Returns a DoubleList containing only elements matching the given predicate.


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

Returns a IntList containing only elements that, when transformed, match the predicate.


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

Returns a LongList containing only elements that, when transformed, match the predicate.


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

Returns a FloatList containing only elements that, when transformed, match the predicate.


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

Returns a DoubleList containing only elements that, when transformed, match the predicate.