BaseStream<T, S extends BaseStream<T, S>> constructor

BaseStream<T, S extends BaseStream<T, S>>()

Base interface for streams, which are sequences of elements supporting sequential and parallel aggregate operations.

This is the Dart equivalent of Java's BaseStream interface, adapted for Dart's language features and conventions.

Example Usage

// Basic stream operations
final numbers = [1, 2, 3, 4, 5];
final stream = DartStream.of(numbers);

final result = stream
    .filter((n) => n > 2)
    .map((n) => n * 2)
    .toList();
print(result); // [6, 8, 10]

See the documentation for DartStream and related classes for additional specification of streams, stream operations, and stream pipelines.

Implementation

BaseStream();