18 Aug 21:22
[groovy-dev] Closure Arguments?
From: Robert Fischer <robert.fischer@...>
Subject: [groovy-dev] Closure Arguments?
Newsgroups: gmane.comp.lang.groovy.devel
Date: 2008-08-18 19:26:12 GMT
Subject: [groovy-dev] Closure Arguments?
Newsgroups: gmane.comp.lang.groovy.devel
Date: 2008-08-18 19:26:12 GMT
(Hit up the user list again, but I'm apparently still not subscribed.)
Is there a way to allow a closure to take an arbitrary number of arguments and get them as a list?
I'm thinking of a behavior similar to Java's varargs.
Notably, the API already has Closure#run taking a single value or a list of values, so I guess I'm
really just asking if that's exposed in the Groovy syntax somewhere.
~~ Robert.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
RSS Feed