chickadee » srfi-1 » pair-fold-right

pair-fold-right kons knil clist_1 clist_2 ...procedure

Holds the same relationship with fold-right that pair-fold holds with fold. Obeys the recursion

(pair-fold-right KONS KNIL LIS) = 
    (KONS LIS (pair-fold-right KONS KNIL (cdr LIS)))
(pair-fold-right KONS KNIL {{'()}}) = KNIL

Example:

(pair-fold-right cons '() '(a b c)) => ((a b c) (b c) (c))

At least one of the list arguments must be finite.