solved
On Sep 6, 4:16 pm, tyliong
<tyli...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
>
> usually when i do this:
>
> x = [1,2,3,]
>
> result = x.min
>
> but let''s say I have a nested array
>
> x = [ [1,"h"], [2,"c"]]
>
> how to i just display the min value (1) and its pair value "h"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---