Thread: Ruby Snippets
View Single Post
Old Jul 9th, 2006, 9:07 PM   #32
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

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 is offline   Reply With Quote