Kotlin Different Kinds of Streams #3 - iterate a range of Integers


Example

// Java:
IntStream.range(1, 4).forEach(System.out::println);
// Kotlin:  (inclusive range)
(1..3).forEach(::println)