On Sun, Sep 18, 2022 at 4:44 AM Marc Nieper-Wißkirchen <
[email protected]> wrote:


> The situation with the right fold is not that obvious.  The dynamic order
> of the invocations to `car' and `kons' in the definition of `fold-right' in
> SRFI 1 depends on the order in which the implementation evaluates procedure
> arguments.
>

Can you demonstrate this using a fold-oid with a side-effecting getter?
Chibi evaluates its arguments right to left, Chicken and most other Schemes
(see <https://docs.scheme.org/surveys/argument-order/>) evaluate them left
to right.

Also, in what circumstances would the getter naturally be side-effecting?

Reply via email to