Forall

angerangel edited this page Jan 3, 2013 · 1 revision
Clone this wiki locally

USAGE

   FORALL 'word body

DESCRIPTION

Evaluates a block for every value in a series.

FORALL is a native value.

ARGUMENTS

  • word -- Word that refers to the series, set to each position in series (word!)
  • body -- Block to evaluate each time (block!)

#SOURCE

forall: make native! [  [
    "Evaluates a block for every value in a series."
    'word [word!] {Word that refers to the series, set to each position in series}
    body [block!] "Block to evaluate each time"
] ]