Since range-fold and range-fold-right are to take multiple ranges, we
should switch the order of the arguments passed to the folded
procedure. As discussed in this[1] thread, I think we should prefer
the SRFI 133/160 fold convention and pass the state value as the first
argument and the (variable number of) range elements last, e.g.
(range-fold (lambda (acc . rest) ...) knil range1 range2 ...)
and not
(range-fold (lambda (rest1 rest2 ... acc) ...) knil range1 range2 ...)
[1] https://srfi-email.schemers.org/srfi-178/msg/15037069/
--
Wolfgang Corcoran-Mathe <xxxxxx@sigwinch.xyz>
"Computer science is no more about computers than astronomy is
about telescopes." --pseudo-Dijkstra