Re: Gee max/min for Collection?
- From: Maciej Piechotka <uzytkownik2 gmail com>
- To: Just Fill Bugs <mozbugbox yahoo com au>
- Cc: libgee-list gnome org
- Subject: Re: Gee max/min for Collection?
- Date: Sun, 21 Aug 2011 01:27:44 +0100
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]