0
I have a list of Parcel objects, am trying to write a closure that picks the parcel object with highest count
class Parcel {
int id,
int count,
String sender,
String recipient
Parcel(int _id, int _count) {
id = _id
count = _count
}
}
def parcels = [new parcel(1,5), new parcel(2,1), new...