summary refs log tree commit diff
path: root/mew.svnwiki
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-12-16 00:15:35 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-12-16 00:15:48 +0100
commit234dbc781c328db11c3cc17a74d2c9301e5d82bf (patch)
tree3d786a0b3289154ba2e7a012250deb66a513d3e1 /mew.svnwiki
parenta68ffccdccc9023c1beb14cae2a8d2695e517da0 (diff)
downloadmew-234dbc781c328db11c3cc17a74d2c9301e5d82bf.tar.gz
mew-234dbc781c328db11c3cc17a74d2c9301e5d82bf.tar.xz
mew-234dbc781c328db11c3cc17a74d2c9301e5d82bf.zip
add inject-accumulator
Diffstat (limited to 'mew.svnwiki')
-rw-r--r--mew.svnwiki6
1 files changed, 6 insertions, 0 deletions
diff --git a/mew.svnwiki b/mew.svnwiki
index 1b8c0ae..3d30816 100644
--- a/mew.svnwiki
+++ b/mew.svnwiki
@@ -503,6 +503,12 @@ Two elements are considered equal if their image under {{<f>}} is {{equal?}}.
 Returns an accumulator that saves the {{<n>}}-th element, or
 an void value else.
 
+<procedure>(inject-accumulator <f> [<init>])</procedure>
+
+Returns an accumulator that xfolds {{<f>}} over the elements.
+If given, folding starts with {{<init>}}, else with the first element
+received.
+
 <procedure>(generator-xfold <f> <seed> <generators>...)</procedure>
 
 Like {{generator-fold}}, but {{<f>}} always takes the accumulator as