]> Untitled Git - monorepo.git/commitdiff
exports both
authorPreston Pan <preston@nullring.xyz>
Fri, 26 Jan 2024 23:09:04 +0000 (15:09 -0800)
committerPreston Pan <preston@nullring.xyz>
Fri, 26 Jan 2024 23:09:04 +0000 (15:09 -0800)
blog/stem.org
index.org

index adec880b78ab879c1b79faf22be19c7e9f17b6ef..bd530cbdded77452619c6d3f317c75119a09e17e 100644 (file)
@@ -329,7 +329,7 @@ dupt [ [ [ dup ] dip ] dip ] def
 which duplicates the second and third value on the stack respectively. However, we might want to define ~dupn~ for any n, which takes in an integer
 and computes ~dup~ ~n~ values down. We can do that with metaprogramming, or less abstractly, we can do it by repeatedly putting quotes inside quotes,
 and then we can ~eval~ the resultant quote. Here is the code that programs ~dipn~ in its entirety, without any sugarcoating:
-#+begin_src stem
+#+begin_src stem :exports both
 # dsc simply discards the top object on the stack
 dsc2 [ dsc dsc ] def
 dupd [ [ dup ] dip ] def
index 15e29c0681033c2fafdbe8d8e317004923eae5cd..0d3f42644d0e985862628d5dc59436ef2ebd407a 100644 (file)
--- a/index.org
+++ b/index.org
@@ -63,7 +63,7 @@ website:
 #+begin_src shell :exports code :results silent
 cd ~/org/website
 git add .
-git commit -m "add metaprogramming section"
+git commit -m "exports both"
 git push github main
 rsync -azvP ~/website_html/ root@nullring.xyz:/var/www/ret2pop/
 #+end_src