Skip to content

Instantly share code, notes, and snippets.

@rtacconi
Created August 26, 2015 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtacconi/dc0c3e6517d8b5de991b to your computer and use it in GitHub Desktop.
Save rtacconi/dc0c3e6517d8b5de991b to your computer and use it in GitHub Desktop.
Prelude> let factorial n = product [1..n]
Prelude> factorial 2
2
Prelude> factorial 3
6
Prelude> factorial 4
24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment