Rebol Programming/repeat

USAGE:

edit
REPEAT 'word value body 

DESCRIPTION:

edit

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

REPEAT is a native value.

ARGUMENTS

edit
  • word -- Word to set each time (Type: word)
  • value -- Maximum number or series to traverse (Type: integer series)
  • body -- Block to evaluate each time (Type: block)

SOURCE CODE

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