filterArray

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

Returns a IntArray containing only elements matching the given predicate.


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

Returns a LongArray containing only elements matching the given predicate.


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

Returns a FloatArray containing only elements matching the given predicate.


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

Returns a DoubleArray containing only elements matching the given predicate.


inline fun Array<Int>.filterArray(predicate: (Int) -> Boolean): IntArray(source)

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


inline fun Array<Long>.filterArray(predicate: (Long) -> Boolean): LongArray(source)

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


inline fun Array<Float>.filterArray(predicate: (Float) -> Boolean): FloatArray(source)

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


inline fun Array<Double>.filterArray(predicate: (Double) -> Boolean): DoubleArray(source)

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