Skip to content

Instantly share code, notes, and snippets.

@emiaj
Created August 14, 2014 17:49
Show Gist options
  • Save emiaj/ed09befa7616f1992273 to your computer and use it in GitHub Desktop.
Save emiaj/ed09befa7616f1992273 to your computer and use it in GitHub Desktop.
let isEven :: Number -> Boolean
let isEven 0 = false
let isEven 1 = false
let isEven 2 = true
let isEven n = isEven(n-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment