- u8vector-fold kons knil @vec @vec2 ...procedure
- s8vector-fold kons knil @vec @vec2 ...procedure
- u16vector-fold kons knil @vec @vec2 ...procedure
- s16vector-fold kons knil @vec @vec2 ...procedure
- u32vector-fold kons knil @vec @vec2 ...procedure
- s32vector-fold kons knil @vec @vec2 ...procedure
- u64vector-fold kons knil @vec @vec2 ...procedure
- s64vector-fold kons knil @vec @vec2 ...procedure
- f32vector-fold kons knil @vec @vec2 ...procedure
- f64vector-fold kons knil @vec @vec2 ...procedure
- c64vector-fold kons knil @vec @vec2 ...procedure
- c128vector-fold kons knil @vec @vec2 ...procedure
When one @vector argument @vec is given, folds kons over the elements of @vec in increasing 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 scans elements from left to right. If the lengths of vectors differ, only the portion of each vector up to the length of the shortest vector is scanned.