filter

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

Returns a list containing only elements matching the given predicate.