aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Winston2023-05-21 23:50:13 -0400
committerBen Winston2023-05-21 23:50:13 -0400
commit229859cde2f0dae4714b972cf18e923027db265c (patch)
tree7e43deb4f7e48f02045d4f8a3a092c72c75bae5f
parent03b4987afc5e32ec560fac6f74c153d592f75259 (diff)
dumb benchmark
-rw-r--r--fib.neb6
1 files changed, 6 insertions, 0 deletions
diff --git a/fib.neb b/fib.neb
new file mode 100644
index 0000000..ff27c33
--- /dev/null
+++ b/fib.neb
@@ -0,0 +1,6 @@
+(func fib (num)
+ (if (< num 2)
+ num
+ (+ (fib (- num 1)) (fib (- num 2)))))
+
+(fib 25)