get the flip side with index. : Array Index « Array « Ruby
- Ruby
- Array
- Array Index
get the flip side with index.
# It returns the index of the first element that matches the object:
q1 = %w[ January February March ]
q1.index "March" # => 2
Related examples in the same category