bug#14353: Implement array-fold and array-fold-all
From:
Jez
Subject:
bug#14353: Implement array-fold and array-fold-all
Date:
Sun, 5 May 2013 23:32:26 -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.