forEachOrdered abstract method

void forEachOrdered(
  1. void action(
    1. double
    )
)

Applies the action to elements in encounter order.

Example

DoubleStream.of([1.5, 2.5, 3.5])
    .forEachOrdered(print); // prints 1.5, 2.5, 3.5 in order

Implementation

void forEachOrdered(void Function(double) action);