iterable abstract method
Returns an iterable for the elements of this stream.
This is a terminal operation.
API Note
This operation is provided as an "escape hatch" to enable arbitrary client-controlled pipeline traversals in the event that the existing operations are not sufficient to the task.
Example
final stream = DartStream.of([1, 2, 3, 4, 5]);
final iterable = stream.iterable();
for (final element in iterable) {
print(element);
}
Implementation
Iterable<T> iterable();