(vmerge-head) ( u v -- h )


Vocabulary
math.vectors

Inputs
ua sequence
va sequence


Outputs
ha sequence


Word description
Creates a new sequence of the same type and size as u and v by interleaving the elements from the first half of u and v.

Notes
For hardware-supported SIMD vector types this word compiles to a single instruction.

Examples
USING: kernel math.vectors prettyprint ; { "A" "B" "C" "D" } { "1" "2" "3" "4" } (vmerge-head) .
{ "A" "1" "B" "2" }


See also
vmerge, (vmerge), (vmerge-tail)

Definition


Methods