Last modified on 31 October 2012, at 12:49

REBOL Programming/loop

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 CODEEdit

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