2010/3/3 Jes=FAs Gabriel y Gal=E1n <jgabrielygalan / gmail.com>:
> On Wed, Mar 3, 2010 at 8:13 PM, Evan Hanson
>> =A0def names
>> =A0 =A0notes =3D []
>> =A0 =A0 / notes.each { |n| notes.push n.name }
>> =A0 =A0notes
>> =A0end
>
> def names
> =A0 / notes.map {|n| n.name}
> end
>
>> =A0def to_s
>> =A0 =A0out =3D ""
>> =A0 =A0names.each { |n| out +=3D n + " " }
>> =A0 =A0out.strip!
>> =A0end
>
> def to_s
> =A0names.join(" ")
> end
>
> Jesus.
>

Ha, that's probably Ruby 101. Cool, thanks.

@Brian Candler -- I see you took the modal approach. Pretty cool. I like th=
is:

(mode-1).times { a.push(a.shift) }