Module : lang.stream

Module Overview

This module provides lang library operations on stream values defined by the language specification 2020R1.

Objects

$anonType$0
$anonType$2
$anonType$3
$anonType$4
$anonType$6
$anonType$7

Functions

close

Closes a stream. This releases any system resources being used by the stream.

filter

Selects the members from a stream for which a function returns true.

forEach

Applies a function to each member of a stream. The Combining function is applied to each member of stream in order.

iterator

Returns an iterator over a stream.

map

Applies a function to each member of a stream and returns a stream of the results.

next

Returns the next element in the stream wrapped in a record or () if the stream ends.

reduce

Combines the members of a stream using a combining function. The combining function takes the combined value so far and a member of the stream, and returns a new combined value.