From: Adam Prescott Date: 2010-10-03T08:37:28+09:00 Subject: Re: The beauty of Ruby through examples I would go with #first, since it's somewhat more readable. On Sat, Oct 2, 2010 at 3:10 PM, w_a_x_man wrote: > On Oct 1, 12:14 am, John Sikora wrote: >> How about some more simple ones like >> >> 'Do Re Mi Fa So La Ti ' * 3 >> >> [125, 450, 250, 1000, 675].sort.reverse.collect{|e| "$#{e}"}.take(3) >> >> '      hello there  '.strip.center(30, '-') >> -- >> Posted viahttp://www.ruby-forum.com/. > > [125, 450, 250, 1000, 675].sort.reverse.map{|e| "$#{e}"}[0,3] >    ==>["$1000", "$675", "$450"] > >