filter

fun <T> Iterator<T>.filter(predicate: (T) -> Boolean): Iterator<T>

Filters the values of the iterator lazily using predicate.