vmerge ( u v -- w )

Factor handbook » The language » Numbers » Vector operations » Vector shuffling, packing, and unpacking

Factor handbook » The language » Numbers » Vector operations » Vector shuffling, packing, and unpacking

Prev: | hrshift ( v n -- w ) |

Next: | (vmerge) ( u v -- h t ) |

Vocabulary

math.vectors

Inputs

Outputs

Word description

Creates a new sequence of the same type as and twice the length of u and v by interleaving the elements of u and v.

Examples

See also

(vmerge), (vmerge-head), (vmerge-tail)

Definition

Methods

math.vectors

Inputs

u | a sequence |

v | a sequence |

Outputs

w | a sequence |

Word description

Creates a new sequence of the same type as and twice the length of u and v by interleaving the elements of u and v.

Examples

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

{ "A" "1" "B" "2" "C" "3" "D" "4" }

{ "A" "1" "B" "2" "C" "3" "D" "4" }

See also

(vmerge), (vmerge-head), (vmerge-tail)

Definition

Methods

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2187, heads/master-82fec08a0c, Jan 27 2023 16:13:10)