chickadee » srfi-179 » array-fold-right

array-fold-right kons knil arrayprocedure

If we use the defining relations for fold-right over lists from SRFI 1:

(fold-right kons knil lis)
    = (kons (car lis) (fold-right kons knil (cdr lis)))
(fold-right kons knil '())
    = knil

then (array-fold-right kons knil array) returns

(fold-right kons knil (array->list array))

It is an error if array is not an array, or if kons is not a procedure.