Skip to content

Instantly share code, notes, and snippets.

@porglezomp
Created May 27, 2015 06:42
Show Gist options
  • Save porglezomp/6950270a837e8bccfda3 to your computer and use it in GitHub Desktop.
Save porglezomp/6950270a837e8bccfda3 to your computer and use it in GitHub Desktop.
fib ^n = {
fib ^n ^a ^b = {
if (n <= 0) ^!( return a )
if (n == 1) ^!( return b )
fib (n - 1) b (a + b)
}
fib n 0 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment