chickadee » transducers » interleave-f32vector

interleave-vector vecprocedure
interleave-u8vector vecprocedure
interleave-u16vector vecprocedure
interleave-u32vector vecprocedure
interleave-u64vector vecprocedure
interleave-s8vector vecprocedure
interleave-s16vector vecprocedure
interleave-s32vector vecprocedure
interleave-s64vector vecprocedure
interleave-f32vector vecprocedure
interleave-f64vector vecprocedure
interleave-c64vector vecprocedure
interleave-c128vector vecprocedure

A transducer that interleaves the contents of the provided vector through the items in the current transduction. If there aren't enough elements in either the current transduction or the vector being interleaved then the transducer exits early.

(import transducers)

(transduce vector-fold
           (interleave-u8vector (u8vector 1 2 3))
           (vector 'a 'b 'c))

; => #(a 1 b 2 c 3)