Skip to content

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.

Creates a Range between two numbers.

var range = Range(0, 10);

start: Number - The number to start the range with (inclusive).

end: Number - The number to end the range with (exclusive).

All methods are inherited from the Sequence class. See the Sequence reference for documentation.

var seq = Range(0, 5).for_each(print_ln);
// 0
// 1
// 2
// 3
// 4