From b1605ef9a7f21e7caf3d033b5ac7df0b8da5c3fe Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 18 Nov 2022 19:55:47 +0100 Subject: add xfold, xfold-right, xreduce, xreduce-right, xscan, xscan-right Make scan, scan-right work with multiple lists. --- mew.svnwiki | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mew.svnwiki') diff --git a/mew.svnwiki b/mew.svnwiki index f11e5d6..c10a557 100644 --- a/mew.svnwiki +++ b/mew.svnwiki @@ -253,6 +253,19 @@ Returns true if {{}} is an unspecified value, else false. (scan-right ...) Like {{fold}}/{{fold-right}}, but collects all accumulator values. +Prefer {{xscan}}/{{xscan-right}}. + +(xfold ...) +(xfold-right ...) +(xreduce ...) +(xreduce-right ...) +(xscan ...) +(xscan-right ...) + +Like {{fold}}/{{fold-right}}/{{reduce}}/{{reduce-right}}/{{scan}}/{{scan-right}}, +but {{}} always takes the accumulator as first arguments, +and the items after. This is more practical when multiple {{lists}} +are passed. (imp ... ) -- cgit 1.4.1