2010/3/3 Jesù¸ Gabriel y GaláÏ <jgabrielygalan / gmail.com>: > On Wed, Mar 3, 2010 at 8:13 PM, Evan Hanson >> ef names >> otes = [] >> notes.each { |n| notes.push n.name } >> otes >> nd > > def names > notes.map {|n| n.name} > end > >> ef to_s >> ut = "" >> ames.each { |n| out += n + " " } >> ut.strip! >> nd > > def to_s > ames.join(" ") > end > > Jesus. > Ha, that's probably Ruby 101. Cool, thanks. @Brian Candler -- I see you took the modal approach. Pretty cool. I like this: (mode-1).times { a.push(a.shift) }