Range Reference
A Range is a finite stream of numbers that start at the specified number and increment by one until the sepcified end. It inherits from Sequence.
Constructor
Section titled “Constructor”Creates a Range between two numbers.
var range = Range(0, 10);Parameters
Section titled “Parameters”start: Number - The number to start the range with (inclusive).
end: Number - The number to end the range with (exclusive).
Methods
Section titled “Methods”Inherited
Section titled “Inherited”All methods are inherited from the Sequence class. See the Sequence reference for documentation.
Example
Section titled “Example”var seq = Range(0, 5).for_each(print_ln);// 0// 1// 2// 3// 4