filter

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

Returns a list containing only elements matching the given predicate.