Skip to content

Instantly share code, notes, and snippets.

@seanmcl
Created August 2, 2022 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanmcl/8b0454518edb244380d0a6d88065b2b5 to your computer and use it in GitHub Desktop.
Save seanmcl/8b0454518edb244380d0a6d88065b2b5 to your computer and use it in GitHub Desktop.
function fib(n: nat): nat {
if n == 0 || n == 1 then 1 else fib(n-1) + fib(n - 2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment