Kilka listingów. W czym to jest napisane?
list = [1: "a", 2: "b", 3: "C", 6: "asdf"]
list.each() {
key, value | println "${key} = ${value}"
}
add = { x -> { y -> x + y }}
println add(2)(4)
def power(n) {
{ base -> base**n }
}
square = power(2)
cube = power(3)
a = square(4)
println a // => 16