filter abstract method
Filters elements based on the given predicate.
Example
final positive = DoubleStream.of([-1.5, 2.5, -3.5, 4.5])
.filter((d) => d > 0);
Implementation
DoubleStream filter(bool Function(double) predicate);
Filters elements based on the given predicate.
final positive = DoubleStream.of([-1.5, 2.5, -3.5, 4.5])
.filter((d) => d > 0);
DoubleStream filter(bool Function(double) predicate);