summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-10-11 23:10:50 +0200
committerLeah Neukirchen <leah@vuxu.org>2022-10-11 23:10:50 +0200
commit78672a5bcd43c23533845e6dda5669511959a9e2 (patch)
tree39b394e71081a2e1ba912beeecd7e9aa87d04681
parentaba04d08daafdaa53794cba8fb2ddc03448c97e8 (diff)
downloadmew-78672a5bcd43c23533845e6dda5669511959a9e2.tar.gz
mew-78672a5bcd43c23533845e6dda5669511959a9e2.tar.xz
mew-78672a5bcd43c23533845e6dda5669511959a9e2.zip
update docs
-rw-r--r--mew.svnwiki26
1 files changed, 23 insertions, 3 deletions
diff --git a/mew.svnwiki b/mew.svnwiki
index 88fcdee..bc218d0 100644
--- a/mew.svnwiki
+++ b/mew.svnwiki
@@ -14,10 +14,11 @@ Alias for {{define}}.
 
 Alias for {{lambda}}.
 
-<syntax>(loc (<var1> <val1> ... <varN> <valN>) <body>)</syntax>
+<syntax>(loc (<pat1> <val1> ... <patN> <valN>) <body>)</syntax>
 
-Binds local variable {{var1}} to the result of evaluating {{val1}},
-then {{var2}} to {{val2}}, etc., then evaluates {{body}}.
+Binds local variables in pattern (ala the {{match}} macro)
+{{pat1}} to the result of evaluating {{val1}},
+then {{pat2}} to {{val2}}, etc., then evaluates {{body}}.
 
 Assignments can refer to previously assigned values of the {{loc}}.
 
@@ -62,6 +63,11 @@ Alias for {{begin}}.
 
 As in R7RS-small.
 
+<syntax>(while <cond> <expr>...)</syntax>
+<syntax>(until <cond> <expr>...)</syntax>
+
+Evaluate {{<expr>}} while {{<cond>}} is true/false.
+
 
 == Numeric helpers
 
@@ -112,3 +118,17 @@ to the current output stream.
 <procedure>(puts . <args>)<procedure>
 
 {{display}} all {{args}} terminated by a newline to the current output stream.
+
+
+== Data types
+
+<procedure>(get <obj> <idx>)</procedure>
+<procedure>(at <obj> <idx>)</procedure>
+<procedure>(set (at <obj> <idx>) <val>)</procedure>
+
+Generalized accessor, supports indexing into lists, vectors,
+hash-tables, strings.
+
+<procedure>(tbl <key1> <val1> ... <keyN> <valN>)</procedure>
+
+Construct a hash-table; using {{equal?}}.