Created
January 22, 2018 18:13
-
-
Save def-/d57e784ce7578a07b3fe4b8790fc96fa to your computer and use it in GitHub Desktop.
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
proc fib(n: int): int = | |
if n <= 0: 1 | |
else: fib(n-1) + fib(n-2) | |
static: | |
echo fib(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment