Multi-argument array folds, array-for-each in math/array?

I've scoured the documentation and source code for math/array and couldn't find a procedure I would call array-for-each, or multi-array argument array-folds. (My motivation is to track down all procedures in math/array that broadcast array arguments.)

Am I missing something?

You can use for and in-array for array-for-each.
With for/array and in-array you get an array-map.

1 Like

Thanks, interesting. I suppose combining for/fold(r) and in-array gets you array-fold(r).

It appears that array-ormap and array-andmap are defined separately instead of combining for/or and for/and with in-array to ensure that the implied array-map builds a non-strict array. SRFI 231's array-map always returns a generalized (non-strict) array, so it appears from math/array's implementation that some aspects of SRFI 231's API can be simplified