4spin ( w x y z -- z y x w ) (original) (raw)

4spin ( w x y z -- z y x w )
Factor handbook » The language » Shuffle words

Prev: spin ( x y z -- z y x )
Next: rotd ( w x y z -- x y w z )

Vocabulary
kernel

Word description
This is a shuffle word, rearranging the top of the datastack as indicated by the word's stack effect: ( w x y z -- z y x w ).

Definition

IN: kernel

: 4spin ( w x y z -- z y x w ) -roll spin ; inline