From: James Edward Gray II Date: 2005-10-28T03:38:55+09:00 Subject: Re: [SUMMARY] Ducksay (#52) On Oct 27, 2005, at 12:59 PM, Florian Frank wrote: > On 2005-10-28 00:55:04 +0900, James Edward Gray II wrote: > >> I was speaking of memory consumption. map() has to copy the whole >> Array, while inject() does not. >> > > ary.max { |a,b| a.size <=> b.size }.size Very nice. I forgot max() can take a block. James Edward Gray II