Bringing back some ideas John Cowan (25 Apr 2022 16:43 UTC)
Re: Bringing back some ideas Bradley Lucier (25 Apr 2022 19:28 UTC)

Re: Bringing back some ideas Bradley Lucier 25 Apr 2022 19:28 UTC

On 4/25/22 12:43 PM, John Cowan wrote:
> See https://srfi-email.schemers.org/srfi-122/msg/13002175/
> <https://srfi-email.schemers.org/srfi-122/msg/13002175/> and the
> following messages in the thread.
>
> I haven't checked to see which of these have already been incorporated,
> but if we can do everything that ISO APL does, that's a benefit.

array-inner-product, array-catenate (as array-append), and array-stack
have been added to SRFI 231.  Also array-block, which is like
array-append but which appends in all dimensions at once.

It appears that interval-empty? and array-empty? may be useful additions
once one adds empty intervals and array domains.

I see I defined array-depth and array-fold-on in a followup to your
email. Here is how they would look now:

(define (array-depth a)
   (if (array? a)
       (+ 1 (array-foldl max 0 (array-map array-depth a)))
       0))

(define (array-foldl-on op id a dim)
   (array-map (lambda (a)
                (array-foldl op id a))
              (array-curry a dim)))

Right now, I'm not eager to include procedures in that email other than
what's already been added.

Brad