chickadee » transducers » f32vector-fold

vector-fold f sentinel vecprocedure
u8vector-fold f sentinel vecprocedure
u16vector-fold f sentinel vecprocedure
u32vector-fold f sentinel vecprocedure
u64vector-fold f sentinel vecprocedure
s8vector-fold f sentinel vecprocedure
s16vector-fold f sentinel vecprocedure
s32vector-fold f sentinel vecprocedure
s64vector-fold f sentinel vecprocedure
f32vector-fold f sentinel vecprocedure
f64vector-fold f sentinel vecprocedure
c64vector-fold f sentinel vecprocedure
c128vector-fold f sentinel vecprocedure

Fold operation over vectors. Can be used with transduce in the following way:

 
(import transducers)

(transduce vector-fold
           values
           (collect-vector)
           (vector 1 2 3))

; => #(1 2 3)

The SRFI-4 vector types behave in a similar fashion.