chickadee » srfi-160 » s8vector-fold-right

u8vector-fold-right kons knil @vec @vec2 ...procedure
s8vector-fold-right kons knil @vec @vec2 ...procedure
u16vector-fold-right kons knil @vec @vec2 ...procedure
s16vector-fold-right kons knil @vec @vec2 ...procedure
u32vector-fold-right kons knil @vec @vec2 ...procedure
s32vector-fold-right kons knil @vec @vec2 ...procedure
u64vector-fold-right kons knil @vec @vec2 ...procedure
s64vector-fold-right kons knil @vec @vec2 ...procedure
f32vector-fold-right kons knil @vec @vec2 ...procedure
f64vector-fold-right kons knil @vec @vec2 ...procedure
c64vector-fold-right kons knil @vec @vec2 ...procedure
c128vector-fold-right kons knil @vec @vec2 ...procedure

When one @vector argument @vec is given, folds kons over the elements of @vec in decreasing order using knil as the initial value. The kons procedure is called with the state first and the element second, as in SRFIs 43 and 133 (heterogeneous vectors). This is the opposite order to that used in SRFI 1 (lists) and the various string SRFIs.

When multiple @vector arguments are given, kons is called with the current state value and each value from all the vectors; @vector-fold-right scans elements from right to left. If the lengths of vectors differ, only the portion of each vector up to the length of the shortest vector is scanned.

SRFI 133