[ create a new paste ] login | about

Link: http://codepad.org/d2IxIWMS    [ raw code | output | fork ]

Ruby, pasted on Mar 25:
1
2
a = [1, 4, 4, 4, -1, 10]
puts a.rindex(4)


Output:
1
3


Create a new paste based on this one


Comments: