diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-11-18 20:05:29 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-11-18 20:05:29 +0100 |
commit | 66cd2fda549d7708acb8685933e619b0922885d5 (patch) | |
tree | ab3f946810780b6174cb6b847ec684efbcc191dc /mew.svnwiki | |
parent | b1605ef9a7f21e7caf3d033b5ac7df0b8da5c3fe (diff) | |
download | mew-66cd2fda549d7708acb8685933e619b0922885d5.tar.gz mew-66cd2fda549d7708acb8685933e619b0922885d5.tar.xz mew-66cd2fda549d7708acb8685933e619b0922885d5.zip |
add generator-xfold
Diffstat (limited to 'mew.svnwiki')
-rw-r--r-- | mew.svnwiki | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mew.svnwiki b/mew.svnwiki index c10a557..3b4fb3f 100644 --- a/mew.svnwiki +++ b/mew.svnwiki @@ -452,6 +452,12 @@ Returns an accumulator that returns a list of unique elements. Two elements are considered equal if their image under {{<f>}} is {{equal?}}. {{<f>}} defaults to the identity function. +<procedure>(generator-xfold <f> <seed> <generators>...)</procedure> + +Like {{generator-fold}}, but {{<f>}} always takes the accumulator as +first arguments, and the items after. This is more practical when +multiple {{<generators>}} are passed. + <procedure>(inject <f> <init>?)</procedure> Returns a procedure that takes an generator (or something convertible |