Map each

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

USAGE

   MAP-EACH 'word data body

DESCRIPTION

Evaluates a block for each value(s) in a series and returns them as a block.

MAP-EACH is a native value.

ARGUMENTS

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

#SOURCE

map-each: make native! [  [
    {Evaluates a block for each value(s) in a series and returns them as a block.}
    'word [word! block!] "Word or block of words to set each time (local)"
    data [block! vector!] "The series to traverse"
    body [block!] "Block to evaluate each time"
] ]