Skip to content

Instantly share code, notes, and snippets.

@gf3
Forked from wmoxam/gist:391464
Created May 6, 2010
Embed
What would you like to do?
i = [10,20,30,40,50].index {|n| n > 20 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment