def cl = <selection>qwerty</selection>{int x -> return x + 1}{int x -> return x + 1} | |
def qwerty(Closure cl, Closure cl2){ | |
def call = cl(42) | |
def call1 = cl2(45) | |
println (call) | |
return call + call1; | |
} | |
----- | |
def call = { int x -> return x + 1 }(42) | |
def call1 = { int x -> return x + 1 }(45) | |
println(call) | |
def cl = call + call1 | |
def qwerty(Closure cl, Closure cl2){ | |
def call = cl(42) | |
def call1 = cl2(45) | |
println (call) | |
return call + call1; | |
} |