REBOL Programming/loop

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

LOOP count block 

DESCRIPTION:[edit]

Evaluates a block a specified number of times.

LOOP is a native value.

ARGUMENTS:[edit]

  • count -- Number of repetitions (Type: integer)
  • block -- Block to evaluate (Type: block)

SOURCE CODE[edit]

loop: native[
    "Evaluates a block a specified number of times." 
    count [integer!] "Number of repetitions" 
    block [block!] "Block to evaluate"
]