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.

ARGUMENTSEdit

  • 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 CODEEdit

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"
]
Last modified on 13 November 2012, at 10:51