forEach abstract method

void forEach(
  1. void action(
    1. double
    )
)

Applies the provided action to each element.

Example

DoubleStream.of([1.5, 2.5, 3.5])
    .forEach(print); // prints 1.5, 2.5, 3.5

Implementation

void forEach(void Function(double) action);