Skip to content

Instantly share code, notes, and snippets.

@mflatt
Created March 30, 2021 13:31
Show Gist options
  • Save mflatt/eddbe2ab4d1c45d0c6b707b4239766f8 to your computer and use it in GitHub Desktop.
Save mflatt/eddbe2ab4d1c45d0c6b707b4239766f8 to your computer and use it in GitHub Desktop.
Fibonacci (the slow way) in MSDscript
_let fib = _fun (fib)
_fun (x)
_if x == 0
_then 1
_else _if x == 1
_then 1
_else fib(fib)(x + -2) + fib(fib)(x + -1)
_in fib(fib)(30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment