Subject: bug#14354: Implement array-fold and array-fold-all

From: Jez <[email-masked]>
Date: Mon, 6 May 2013 01:23:46 -0400

Right now there are no library functions for folding over arrays (or
bytevectors, etc.) This implements them. fold-all produces a single value
regardless of the number of dimensions of the array; it is implemented on
top of array-for-each. array-fold produces an array of rank n-1, where n is
the rank of the original array.

I'll write up documentation if the code looks acceptable.

Regards,
Jez