API Reference

Dive into the specifics of each stream operation by checking out our complete documentation.

Intermediate Operations

Intermediate operations are transformative and filtering operations applied to the elements of a Stream, enabling diverse data manipulations and facilitating the chaining of operations to construct intricate processing pipelines while maintaining the Stream's continuity.

pageIntermediate Operations

Terminal Operations

A terminal operation is an operation that is performed on a stream and produces a result or a side effect. Terminal operations are the final step in a stream pipeline and trigger the processing of the elements in the stream.

When a terminal operation is invoked on a stream, it consumes the elements from the stream and produces a result, which could be a single value or a collection, or performs a side effect, such as writing to a file or displaying information on the console. Once a terminal operation is executed, the stream is considered consumed and cannot be reused.

If you try to reuse the stream, it will throw a RuntimeError.

pageTerminal Operations

Numeric Stream

NumericStream is a special Stream type that extends the default functionality with operations for numerical data sources such as statistical and mathematical functions.

pageNumeric Stream

Last updated