The starting value for the range, inclusive.
Optional stop: numberThe stopping value for the range, exclusive.
Optional step: numberThe distance between each value.
An iterator which produces evenly spaced values.
In the single argument form of range(stop), start defaults to
0 and step defaults to 1.
In the two argument form of range(start, stop), step defaults
to 1.
import { range } from '@lumino/algorithm';
let stream = range(2, 4);
Array.from(stream); // [2, 3]
Create an iterator of evenly spaced values.