Skip to content

Instantly share code, notes, and snippets.

@funrep
Created March 7, 2013 16:40
Show Gist options
  • Save funrep/5109460 to your computer and use it in GitHub Desktop.
Save funrep/5109460 to your computer and use it in GitHub Desktop.
fib x | x < 2 = x | otherwise = fib (x - 1) + fib (x - 2)
shit x
| x <= 0 = []
| even x = x:shit (fib (x-1))
| otherwise = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment