summaryrefslogtreecommitdiff
path: root/examples/fib.ash
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-01-19 20:02:29 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-01-19 20:02:29 +0400
commit999d26eb5b7fcd96feadde6ca9ee9900ac8179af (patch)
tree0b9545e4a97906a1350f6934b8f08682199f2019 /examples/fib.ash
parent8d0fc4dd5f70bc829f4f73b70246c02bc3f8168c (diff)
program name changed to `marp`
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