summary refs log tree commit diff
path: root/mew.svnwiki
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-10-30 18:00:39 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-10-30 18:00:39 +0100
commit4c876b0fa6636e2a661594829cd5dc7421241cf7 (patch)
tree13eb161afe8dac746f0502d71e111552c8a32e3e /mew.svnwiki
parentc703c1170def0cf0a41282a713665ac91847f7da (diff)
downloadmew-4c876b0fa6636e2a661594829cd5dc7421241cf7.tar.gz
mew-4c876b0fa6636e2a661594829cd5dc7421241cf7.tar.xz
mew-4c876b0fa6636e2a661594829cd5dc7421241cf7.zip
add tally-accumulator, group-by-accumulator
Diffstat (limited to 'mew.svnwiki')
-rw-r--r--mew.svnwiki10
1 files changed, 10 insertions, 0 deletions
diff --git a/mew.svnwiki b/mew.svnwiki
index 2339394..93e2f01 100644
--- a/mew.svnwiki
+++ b/mew.svnwiki
@@ -253,6 +253,16 @@ Finally, return the result of accumulation.
 If {{<acc>}} is a list/vector/hash-table/string, accumulate into
 a corresponding accumulator initialized to {{<acc>}}.
 
+<procedure>(tally-accumulator)</procedure>
+
+Returns an accumulator that counts how often each element was
+accumulated.  The accumulator results in a hash-table of objects to
+numbers.
+
+<procedure>(group-by-accumulator <f>)<procedure>
+
+Returns an accumulator that stores all elements in lists in a hash-table,
+applying {{<f>}} to the element to compute the key.
 
 == Regular expressions