View difference between Paste ID: 4zywUAgf and fderXLwW
SHOW: | | - or go back to the newest paste.
1-
def range1 = 'a'..'d'
1+
// Primitive integer is also an Object, so we can invoke methods
2-
assert range1 == ['a','b','c','d']
2+
println 'Loop 1'
3-
3+
 3.times {
4-
def list = [0,1,2,3,4,5]
4+
     println it
5-
5+
 }