Thread
:
Ruby Snippets
View Single Post
Jul 9th, 2006, 9:07 PM
#
32
Dietrich
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power:
4
(
Toggle Plain Text
)
puts states50.index("Iowa") #=> 14
puts states50.index("Iowa") #=> 14
Thanks, I thought there should be a find-index function builtin into Ruby.
__________________
I looked it up on the Intergnats!
Dietrich
View Public Profile
Find More Posts by Dietrich