about summary refs log tree commit diff
path: root/examples/8.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-06-11 00:16:17 +0200
committerBaitinq <[email protected]>2025-06-11 00:16:17 +0200
commitfa92a157746ae17f295d31b7a047dfeb99624a13 (patch)
tree71e469e67a70df15542d873ebe223654def6111b /examples/8.src
parentstdlib: Remove println (diff)
downloadpry-lang-fa92a157746ae17f295d31b7a047dfeb99624a13.tar.gz
pry-lang-fa92a157746ae17f295d31b7a047dfeb99624a13.tar.bz2
pry-lang-fa92a157746ae17f295d31b7a047dfeb99624a13.zip
Misc: Rename lang
Diffstat (limited to 'examples/8.src')
-rw-r--r--examples/8.src27
1 files changed, 0 insertions, 27 deletions
diff --git a/examples/8.src b/examples/8.src
deleted file mode 100644
index 671640b..0000000
--- a/examples/8.src
+++ /dev/null
@@ -1,27 +0,0 @@
-import "!stdlib.src";
-
-let main = () => i64 {
-	let fib = (n: i64) => i64 {
-		if n == 0 {
-			return 0;
-		};
-		if n == 1 {
-			return 1;
-		};
-		return fib(n-2) + fib(n-1);
-	};
-
-	let result = fib(30);
-	printf("%d\n", result);
-	return result;
-};
-
-/*
-
-Expected stdout:
-
-832040
-
-Expected return: 832040
-
-*/