By fifthposition
via mrhaki.blogspot.com
Published: Dec 28 2009 / 06:03
Groovy 1.7 adds news methods to the standard Java classes. One of the new methods is eachPermutation(). With this method we can loop through all permutations of a collection and run a closure for the iterations. To get all permutations for a collection we can use the permutations() method.



Add your comment