From: dblack@... Date: 2006-07-11T01:51:14+09:00 Subject: Re: Question about magic enumerators in > 1.8 Hi -- On Mon, 10 Jul 2006, Christian Neukirchen wrote: > dblack@wobblini.net writes: > >> Hi -- >> >> Can someone jog my memory, and/or enlighten me, as to what a case >> would be where it's useful to have: >> >> array.map >> >> return an Enumerator? I can't seem to come up with an example where: >> >> array.map.anything >> >> is different from >> >> array.anything > > names.map { |x| x.size }.max, and you don't need an immediate array. That's not an example of what I'm asking about, though. There's no enumerator returned there. David -- http://www.rubypowerandlight.com => Ruby/Rails training & consultancy http://www.manning.com/black => RUBY FOR RAILS, the Ruby book for Rails developers http://dablog.rubypal.com => D[avid ]A[. ]B[lack's][ Web]log dblack@wobblini.net => me