chickadee » vector-lib » vector-fold-right

vector-fold-right kons knil vec_1 vec_2 ···procedure

Similar to vector-fold, but it iterates right to left instead of left to right.

Example:

Convert a vector to a list.

(vector-fold-right (λ (index tail elt) (cons elt tail))
                   '() '#(a b c d))
  ;=> (a b c d)