Re: Gee max/min for Collection?



On 19/08/2011 18:27, Just Fill Bugs wrote:
> Should there be max/min methods or properties for collections?
> 

After a thought - this code should be simpler if you know you have more
then 1 element:

int max = list.fold(int.max, int.MIN);

Regards

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]