ForEach
Evaluates an expression for each element in a container.
Syntax
-
ForEach(X, x, expr)
-
X
is a container -
x
is a symbol -
expr
is an expression inx
-
Description
ForEach(X, x, exp)
evaluates expr(x)
for each x
in X
and returns null
; hence, it is used for its side effects.