Module function reference

range

A reference entry for range

Module function · Math

range ({number} start, {number} stop[, {number|boolean} step_or_inclusive]) ⇒ list

Generates a list of numbers in a range. The optional third parameter can specify an increment or whether the range is inclusive.

Example

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

Notes

The range operation is intended to provide Python-like numeric ranges. The third parameter can be an increment or an inclusive flag, depending on the form used.