Handbook
Glossary
swap ( x y -- y x )
Factor handbook
»
Guided tour of Factor
»
Stack Shuffling
Prev:
drop ( x -- )
Next:
over ( x y -- x y x )
Vocabulary
kernel
Word description
This is a shuffle word, rearranging the top of the datastack as indicated by the word's stack effect: ( x y -- y x ).
Definition
IN:
kernel
PRIMITIVE:
swap
( x y -- y x )