implementing native functions (ch24)

This commit is contained in:
mycroft committed 2024-08-29 09:16:52 +02:00
1 parent 3daa675f8d
commit a2200debb4
7 files changed
+94 -4

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
fun fib(n) {
if (n < 2) return n;
return fib(n - 2) + fib(n - 1);
}
var start = clock();
print fib(20);
print clock() - start;