Named arguments (parameters) in functions or closuresBy neokrates, written on June 3, 2010 |
groovy snippet |
- neokrates
- Email: uwarov@yahoo.com
- Website: http://www.thinkplexx.com
- Join date: 05-31-09
- Posts: 20
Rate it
Ad
Poll
Do you plan to migrate to new SCM?
- Our current SCM is just perfect (69%, 9 Votes)
- Subversion (SVN) (15%, 2 Votes)
- Git (8%, 1 Votes)
- Mercurial (Hg) (8%, 1 Votes)
- Bazaar (0%, 0 Votes)
- Other (0%, 0 Votes)
Total Voters: 13
Loading ...
Most popular search terms:
1 2 3 4 5 6 | final launchRemoteControl ( p=[p1 : 'Micro', p2:"And", p3 : "Soft" ]) { println p.p1 + p.p2 + p.p3 } launchRemoteControl() launchRemoteControl(p1:'Soft', p2:'', p3:'Micro') |
Currently, there is a limitation that if you skip one name, it will be missed in function as well (because you actually replace default map as whole)
launchRemoteControl(p1:'Soft', p3:'Micro')
|
TAGS
|
|
RELATED
|
Pages
Posts
|
|
SOCIAL
|


















