Skip to content

Instantly share code, notes, and snippets.

@dbushenko
Created September 17, 2012 08:56
Show Gist options
  • Save dbushenko/3736283 to your computer and use it in GitHub Desktop.
Save dbushenko/3736283 to your computer and use it in GitHub Desktop.
fseq :: Integer -> Integer
fseq n | n == 0 = 1
| n == 1 = 2
| n > 2 = 3 * fseq (n - 1)
| otherwise = error "Unknown argument"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment