flatMap abstract method

IntStream flatMap(
  1. IntStream mapper(
    1. int
    )
)

Returns a stream consisting of the results of replacing each element with the contents of a mapped stream.

Example

final expanded = IntStream.range(1, 3)
    .flatMap((n) => IntStream.range(0, n));

Implementation

IntStream flatMap(IntStream Function(int) mapper);