Re: Proposal to reduce the number of argument to array-for-each, array-every, and array-any Bradley Lucier 10 Nov 2025 23:21 UTC

On 11/8/25 16:32, Bradley Lucier wrote:
> The old behavior can be obtained with
>
> (array-for-each (apply array-map f array . arrays))
> (array-every (apply predicate array arrays))
> (array-any (apply predicate array arrays))

That should be:

(array-for-each (apply array-map f array arrays))
(array-every (apply array-map predicate array arrays))
(array-any (apply array-map predicate array arrays))

So a lot more explicit array-map's in code, with the benefit that it's
clear that array-for-each, array-every, array-any just evaluate elements
of an array in order, with different control-flow semantics.

Brad