Foreach

angerangel edited this page Jan 3, 2013 · 1 revision

USAGE

   FOREACH 'word data body

DESCRIPTION

Evaluates a block for each value(s) in a series.

FOREACH is a native value.

ARGUMENTS

  • word -- Word or block of words to set each time (local) (word! block!)
  • data -- The series to traverse (series! any-object! map! none!)
  • body -- Block to evaluate each time (block!)

#SOURCE

foreach: make native! [  [
    "Evaluates a block for each value(s) in a series."
    'word [word! block!] "Word or block of words to set each time (local)"
    data [series! any-object! map! none!] "The series to traverse"
    body [block!] "Block to evaluate each time"
] ]
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.