summary refs log tree commit diff
path: root/mew.svnwiki
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-01-02 19:10:02 +0100
committerLeah Neukirchen <leah@vuxu.org>2023-01-02 19:10:02 +0100
commit5e79d95159a6cd680d045314fe427b263e7ab344 (patch)
treeb70a26a8bc1721ec08c270db5f1d8a704dfa6bc3 /mew.svnwiki
parent909cf1ba9001f52afbbb6f7cfb6c919869c068ac (diff)
downloadmew-5e79d95159a6cd680d045314fe427b263e7ab344.tar.gz
mew-5e79d95159a6cd680d045314fe427b263e7ab344.tar.xz
mew-5e79d95159a6cd680d045314fe427b263e7ab344.zip
add push!, pop!
Diffstat (limited to 'mew.svnwiki')
-rw-r--r--mew.svnwiki13
1 files changed, 11 insertions, 2 deletions
diff --git a/mew.svnwiki b/mew.svnwiki
index 16dd90d..92ed78d 100644
--- a/mew.svnwiki
+++ b/mew.svnwiki
@@ -144,8 +144,8 @@ with a {{'message}} of {{<message>}} passed through {{format}} with
 
 Increment or decrement the argument by 1.
 
-<procedure>(inc! <loc> [<n>])</procedure>
-<procedure>(dec! <loc> [<n>])</procedure>
+<syntax>(inc! <loc> [<n>])</syntax>
+<syntax>(dec! <loc> [<n>])</syntax>
 
 Increment or decrement the location {{<loc>}} by {{<n>}} (default: 1).
 
@@ -302,6 +302,15 @@ Material implication: evaluate {{<antecedent>...}} until one is false,
 then shortcut and return true.  If all {{<antecedent>...}} are true,
 evaluate {{<consequent>}}.
 
+<syntax>(push! <loc> <val>)</syntax>
+
+Prepend {{<val>}} to the list stored at {{<loc>}}.
+
+<syntax>(pop! <loc> [<val>])</syntax>
+
+Return the head of {{<loc>}} and replace {{<loc>}} with its tail.
+If {{<loc>}} is empty, return {{<val>}} if given; else throw an exception.
+
 
 == I/O helpers