From: Joey Date: 2006-08-12T23:54:11+09:00 Subject: Re: map or collect with multidimension arrays ------=_Part_146826_22449444.1155394448431 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I dont see anything wrong with that statement. j`ey http://www.eachmapinject.com On 8/12/06, Dark Ambient wrote: > > David - I'm trying to replicate some of the things in your r4r, but > not using AR just some arrays and or hashes. Maybe it's the wrong > approach. > As an example > > def publishers > editions.map {|e| e.publisher}.uniq > end > > Stuart > On 8/12/06, dblack@wobblini.net wrote: > > Hi -- > > > > On Sat, 12 Aug 2006, Dark Ambient wrote: > > > > > What would be the proper call to a multi array either collect or map ? > > > > There's no single proper thing to do; it depends entirely on the task > > at hand. > > > > > > David > > > > -- > > http://www.rubypowerandlight.com => Ruby/Rails training & consultancy > > ----> SEE SPECIAL DEAL FOR RUBY/RAILS USERS GROUPS! <----- > > http://dablog.rubypal.com => D[avid ]A[. ]B[lack's][ Web]log > > http://www.manning.com/black => book, Ruby for Rails > > http://www.rubycentral.org => Ruby Central, Inc. > > > > > > ------=_Part_146826_22449444.1155394448431--