Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-JSR-4
-
None
-
Patch
Description
sort() can take Closures to transparantly wrapping them in to ClosureComparators when they have two parameters and have the standard handling if they take one parameter. unique() has the same demand but only supports Comparators.
support:
collection.unique
{ a,b -> a.foo <=> b.foo }collection.unique
{ it.foo }This need was detected in a corporate IT department using Groovy for gathering Test-Data from a backend system.