swap ( x y -- y x )
Factor documentation > 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
IN: kernel

PRIMITIVE: swap ( x y -- y x )