View difference between Paste ID: 93bHx2af and mzcwaCwq
SHOW: | | - or go back to the newest paste.
1-
myList = [1, 2, 3, 4] 
1+
[def <closure name> =] { 
2-
2+
  [<list of parameters> ->] 
3-
myList.each { 
3+
  <set of statements> 
4-
  println it 
4+