Language: Collection Operations
Collection operations are expressions that are performed on a list or map to return a variation of the initial data.
At the moment, filter
is the only collection operation available.
Filter Expression
filter
is a quantifier
expression that
returns a subset of the provided collection. Only elements whose filter body
returns true will be returned. If any of the elements filter body returns
undefined, the final result will be undefined.
Filter uses the same syntax as the any
and all
boolean
expressions:
Examples:
Map Expression
map
is a quantifier
expression that
returns a list, regardless of the input collection type. Each element within the
input collection is evaluted according to the map expression body and appended
to the result.