Allow a query-expr to construct a stream #443
Labels
Area/Lang
Relates to the Ballerina language specification
Type/Improvement
Enhancement to language design
Milestone
This works lazily: the stream has a closure that returns the next result when the closure is called. Errors are also returned lazily through the stream's iterator's termination value: this includes errors in the source iterator or from check expressions in the where and select clauses.
Because of the above difference in semantics, queries returning streams are prefixed with the
stream
keyword.Example
The text was updated successfully, but these errors were encountered: