ForElement
Input: ForElement(x, S)
Generator expression. This is a syntactical construct which does not represent a mathematical object on its own. The ForElement expression defines the symbol passed as the first argument (here x) as a locally bound variable in the scope of the parent expression. The second argument (here S) should be a set; the meaning is that x is taken over all values in S in the parent expression.
A typical use is to perform a set comprehension or fold-type operation.
Most operators that allow ForElement interpret an expression following ForElement as a filter predicate.
Last updated: 2020-03-06 00:22:16