Given following groovy function:
def foo(List params, Closure c) {...}
The method call would be:
foo([\'a\', \'b
I think this only could be possible if you use an array as argument or an Variable-Length Argument List :
def foo(Object... params) { def closureParam = params.last() closureParam() } foo('a', 'b') { print "bar" }