Created
March 30, 2021 13:31
-
-
Save mflatt/eddbe2ab4d1c45d0c6b707b4239766f8 to your computer and use it in GitHub Desktop.
Fibonacci (the slow way) in MSDscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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