# forEachOrdered abstract method

void forEachOrdered(

1. void action(
   1. T
   )

)

Performs an action for each element of this stream, in the encounter order of the stream if the stream has a defined encounter order.

## Example

    GenericStream.of([1, 2, 3, 4, 5])
        .forEachOrdered(print); // prints 1, 2, 3, 4, 5 in order

## Implementation

    void forEachOrdered(void Function(T) action);