summary refs log tree commit diff
path: root/mew.svnwiki
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-12-16 00:21:29 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-12-16 00:22:47 +0100
commit8580001ef44f7a8da3b97c439473cb204a0e34f5 (patch)
tree0322f785becd4137f8e2c0b9dca34694a3140e8f /mew.svnwiki
parent28ad4b62515325463656627fa3d80a984f8c0fdb (diff)
downloadmew-8580001ef44f7a8da3b97c439473cb204a0e34f5.tar.gz
mew-8580001ef44f7a8da3b97c439473cb204a0e34f5.tar.xz
mew-8580001ef44f7a8da3b97c439473cb204a0e34f5.zip
add for/into
Diffstat (limited to 'mew.svnwiki')
-rw-r--r--mew.svnwiki4
1 files changed, 4 insertions, 0 deletions
diff --git a/mew.svnwiki b/mew.svnwiki
index 958da33..0099046 100644
--- a/mew.svnwiki
+++ b/mew.svnwiki
@@ -388,6 +388,7 @@ up to a level of {{<depth>}}, or infinitely by default.
 
 <syntax>(for (<var> <obj> ...) <body>...)</syntax>
 <syntax>(for ((<key> . <val>) <tbl> ...) <body>...)</syntax>
+<syntax>(for/into <acc> (<var> <obj> ...) <body>...)</syntax>
 
 If {{<obj>}} is a list or a vector, iterate over its elements.
 If {{<obj>}} is a procedure, consider it a SRFI-158 generator
@@ -397,6 +398,9 @@ If {{<obj>}} is a hash-table, iterate over its keys and values.
 Multiple {{<var> <obj>}}-pairs may be specified, then {{for}}
 iterates over these in *parallel*, stopping after the shortest ends.
 
+The variant {{for/into}} accumulates the values of the {{<body>}}
+and returns the result of the accumulation.
+
 <procedure>(search <needle> <haystack> <offset>?)</procedure>
 
 Returns the offset of the sequence (string/list/vector) {{<needle>}}