Returns a Stream containing only elements that match the predicate.
Example:
var result = stream.filter ((x) => { return x > 0; });
| fn |
the predicate function. |
|
a new filtered Stream. |