Groovy Object Range

def numbers 1.0..9.0
println numbers.class

for (in numbers)
println x


Output of Script

 20 ms

class groovy.lang.ObjectRange
1.0
2.0
3.0
4.0
5.0
6.0
7.0
8.0
9.0

Comments

Popular posts from this blog

தட்டு வண்டியில் காளிக்கோயில் - சிறுகதை

பிரேமாவின் பெண் குழந்தை

தீபம் பிளக்ஸ்