fork download
  1. def x = [ [a:1, b:2], [a:1, b:3], [a:2, b:4] ]
  2. def result = x.collect{it.a}
  3. println result
Success #stdin #stdout 2.39s 138288KB
stdin
Standard input is empty
stdout
[1, 1, 2]