Skip to content

Instantly share code, notes, and snippets.

@r00k
Last active August 29, 2015 14:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r00k/9757e3a6fa8a66c7018f to your computer and use it in GitHub Desktop.
Save r00k/9757e3a6fa8a66c7018f to your computer and use it in GitHub Desktop.
Ruby Quiz Question 2

Answer to Question 1:

The method shown is inject, (aka reduce).

I love inject, and you should too!

Jay Fields loves inject so much he wrote a love letter to it.

@tacticiankerala
Copy link

Ha! That was pretty easy! I was just reading Programming Elixir and playing around with #reduce 😄 . Coincidence!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment