Skip to content

Instantly share code, notes, and snippets.

@entrity
Last active December 16, 2015 13:59
Show Gist options
  • Save entrity/5445458 to your computer and use it in GitHub Desktop.
Save entrity/5445458 to your computer and use it in GitHub Desktop.
Ruby: Returns the first matching object in an Array, without iterating all the way through as #select does and without having to first return an index as #index does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment