411 REFERENCE · Wikibooks
Rebol Programming/forall
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
USAGE:
FORALL 'word body
DESCRIPTION:
Evaluates a block for every value in a series.
FORALL is a function value.
ARGUMENTS
word -- Word set to each position in series and changed as a result (Type: word)
body -- Block to evaluate each time (Type: block)
(SPECIAL ATTRIBUTES)
catch
throw
SOURCE CODE
forall: func [
"Evaluates a block for every value in a series."
[catch throw]
'word [word!] {Word set to each position in series and changed as a result}
body [block!] "Block to evaluate each time"
][
throw-on-error [forskip :word 1 body]
]