Loop

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

USAGE

   LOOP count block

DESCRIPTION

Evaluates a block a specified number of times.

LOOP is a native value.

ARGUMENTS

  • count -- Number of repetitions (number!)
  • block -- Block to evaluate (block!)

#SOURCE

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