aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2024-01-25 17:39:10 -0800
committerPreston Pan <preston@nullring.xyz>2024-01-25 17:39:10 -0800
commit82f41dfb0de5bd5a9a018a9ca3e50613f2bccf8b (patch)
tree81cc1d68c47f08cc7e4dbef54854067758e327a6
parentbb30a8b92f1dac2e08bd6ec7014f8c6ce7b359db (diff)
able to run stem code due to org-babel-execute!
-rw-r--r--index.org2
-rw-r--r--mindmap/recursion.org9
2 files changed, 8 insertions, 3 deletions
diff --git a/index.org b/index.org
index 49a4049..2d3c2a9 100644
--- a/index.org
+++ b/index.org
@@ -62,7 +62,7 @@ website:
#+begin_src shell :exports code :results silent
cd ~/org/website
git add .
-git commit -m "edit recursion article mindmap"
+git commit -m "able to run stem code due to org-babel-execute!"
git push github main
rsync -azvP ~/website_html/ root@nullring.xyz:/var/www/ret2pop/
#+end_src
diff --git a/mindmap/recursion.org b/mindmap/recursion.org
index 3cc2a12..cbf6dad 100644
--- a/mindmap/recursion.org
+++ b/mindmap/recursion.org
@@ -105,9 +105,14 @@ procedure is exactly the same as popping those values off a stack!
** Stacks Describe Recursion
To see more transparently how stacks relate to recursion, we use my programming language stem, which is a
concatenative programming language, as a more transparent example.
-#+begin_src stem
-factorial [ dup 0 <= [ 1 + ] [ dup 1 - factorial * ] ] def
+#+begin_src stem :exports both
+factorial [ dup 0 <= [ 1 + ] [ dup 1 - factorial * ] if ] def
+5 factorial .
#+end_src
+
+#+RESULTS:
+: 120
+
* TODO Recursion Describes…?
* TODO Recursion is not Recursive