Sequence Reference
A Sequence is an infinite stream of numbers. It inherits from Iterator.
Constructor
Section titled “Constructor”Creates a Sequence of numbers.
var seq = Sequence();Parameters
Section titled “Parameters”start: Number? optional - The number to start the sequence with. Defaults to 0.
step: Number? optional - The number to increment by. Defaults to 1.
Methods
Section titled “Methods”Inherited
Section titled “Inherited”All methods are inherited from the Iterator class. See the Iterator reference for documentation.
Example
Section titled “Example”var seq = Sequence().for_each(print_ln);// 0// 1// 2// 3// 4// etc.