swap ( x y -- y x )
Factor handbook > The language > Shuffle words

Prev:pick ( x y z -- x y z x )
Next:Complex shuffle words


Vocabulary
kernel

Word description
Shuffle word. Rearranges the top of the datastack as indicated in the stack effect pattern.

Definition

PRIMITIVE: swap ( x y -- y x )