Repeat

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

USAGE

   REPEAT 'word value body

DESCRIPTION

Evaluates a block a number of times or over a series.

REPEAT is a native value.

ARGUMENTS

  • word -- Word to set each time (word!)
  • value -- Maximum number or series to traverse (number! series! none!)
  • body -- Block to evaluate each time (block!)

#SOURCE

repeat: make native! [  [
    {Evaluates a block a number of times or over a series.}
    'word [word!] "Word to set each time"
    value [number! series! none!] "Maximum number or series to traverse"
    body [block!] "Block to evaluate each time"
] ]