Subject: [ruby-talk:17853] Re: Ruby Idioms
From: Stephen White <spwhite chariot.net.au>
Date: Sun, 15 Jul 2001 05:34:11 +0900
In-reply-to: 17852
On Sun, 15 Jul 2001, Stephen White wrote:
> one = ahash.keys.sort.map {|i| ahash[i]}
>
> two = ahash.sort {|i,j| i[0] <=> j[0]}.map {|i,j| j}
Sigh. I thought of this after posting...
two = ahash.sort.map {|i,j| j}
--
spwhite / chariot.net.au