var s = Stream.range (10, 20);
s.print (); // prints the numbers from 10 to 20
You can specify only the beginning of the range Stream.range (low) for an argument Stream.range (low, high), then the stream will consist of an unlimited natural numbers. Stream.range () starts with 1 by a default.
The idea of supposedly "infinite" range simplifies the programming. For example, in this way, a list of odd and even numbers is produced.