take array within range in kotlin code example Example: kotlin ranges // Int range for (x in 1 .. 30) { println(x) }