Rebol 编程/forall
外观
< Rebol 编程
FORALL 'word body
针对系列中的每个值评估块。
FORALL 是一个函数值。
- 单词 -- 设置为系列中每个位置的单词,并作为结果而更改(类型:单词)
- 主体 -- 每次评估的块(类型:块)
- 捕获
- 抛出
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] ]