Kotlin #3不同类型的流-迭代一系列整数

示例

// Java:
IntStream.range(1, 4).forEach(System.out::println);
// Kotlin :(包含范围)
(1..3).forEach(::println)