dupd ( x y -- x x y )
Factor handbook » The language » Shuffle words » Complex shuffle words

Next:swapd ( x y z -- y x z )


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 -- x x y ).

This word is deprecated
The data flow represented by this shuffle word might be more clearly expressed using Lexical variables.


Definition

PRIMITIVE: dupd ( x y -- x x y )