Predefined function reference

range

A reference entry for range

Predefined function · scientific_mathematics

range (integer max[, integer min]) ⇒ list

Generates a list of integers ranging from the minimum to the maximum. The third parameter can be a boolean to indicate whether the range should include the maximum value or an number to indicate the incrementer.

Using the range function like Python

The range function is designed to simulate what Python does with its range predefined function. The following example shows this:

YASS
for each($value in range(0, 10))
  print($value)
end for