Maps each element to an int, returning an IntStream.
int
final rounded = DoubleStream.of([1.7, 2.3, 3.9]) .mapToInt((d) => d.round());
IntStream mapToInt(int Function(double) mapper);