From: Dark Ambient Date: 2006-08-12T23:47:03+09:00 Subject: Re: map or collect with multidimension arrays 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. > >