mapToInt abstract method

IntStream mapToInt(
  1. int mapper(
    1. double
    )
)

Maps each element to an int, returning an IntStream.

Example

final rounded = DoubleStream.of([1.7, 2.3, 3.9])
    .mapToInt((d) => d.round());

Implementation

IntStream mapToInt(int Function(double) mapper);