Scan
Scan(f, expr)
applies
f
to each element ofexpr
and returnsNull
.
Scan(f, expr, levelspec)
applies
f
to each level specified bylevelspec
ofexpr
.
Examples
>> Scan(Print, {1, 2, 3}) 1 2 3
>> Scan(Print, f(g(h(x))), 2) h(x) g(h(x))
>> Scan(Print)({1, 2}) 1 2
>> Scan(Return, {1, 2})1
Implementation status
- ✅ - full supported