Filters an iterable, only yielding items which match f.
f
filter([1, 2, 3, 4], e => e % 2 == 0);returns [2, 4] Copy
filter([1, 2, 3, 4], e => e % 2 == 0);returns [2, 4]
Filters an iterable, only yielding items which match
f
.