Skip to content

Instantly share code, notes, and snippets.

@perspectivezoom
Created June 13, 2012 22:47
Show Gist options
  • Save perspectivezoom/2926980 to your computer and use it in GitHub Desktop.
Save perspectivezoom/2926980 to your computer and use it in GitHub Desktop.
def sum(ar)
ar.inject(0, :+)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment