summaryrefslogtreecommitdiff
path: root/examples/fib.ash
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fib.ash')
-rw-r--r--examples/fib.ash16
1 files changed, 0 insertions, 16 deletions
diff --git a/examples/fib.ash b/examples/fib.ash
deleted file mode 100644
index c29476d..0000000
--- a/examples/fib.ash
+++ /dev/null
@@ -1,16 +0,0 @@
-# Print out given number of elements in the Fibonacci sequence, 46 is the max value
-define fib
- var lim !lim
- var a 1 !a
- var b 1 !b
- @lim while dup 0 > do
- @a dump
- @b dup
- @a
- + !b
- !a
- 1 -
- done
-end
-
-10 fib