Skip to content

Instantly share code, notes, and snippets.

@perjerz
Created September 15, 2019 05:06
Show Gist options
  • Save perjerz/0648c872ea1046e764dc8201aecbc55c to your computer and use it in GitHub Desktop.
Save perjerz/0648c872ea1046e764dc8201aecbc55c to your computer and use it in GitHub Desktop.
Ajarn dave
factorial :: Int -> Int
factorial 0 = 1
factorial n = n * factorial (n - 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment