Skip to content

Instantly share code, notes, and snippets.

@jamiecurran
Created February 25, 2013 12:43
Show Gist options
  • Save jamiecurran/5029579 to your computer and use it in GitHub Desktop.
Save jamiecurran/5029579 to your computer and use it in GitHub Desktop.
Ruby - Factorials
(1..n).reduce(1, :*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment