Forth · Lesson 3

Stack shuffling: dup, drop, swap, over, rot

Rearrange the data stack with dup, drop, swap, over, rot, nip, tuck and 2dup, and read each word's stack effect.

Lessons · Forth · Lesson 3 of 10

Stack shuffling: dup, drop, swap, over, rot

Rearrange the data stack with dup, drop, swap, over, rot, nip, tuck and 2dup, and read each word's stack effect.

Illustration for Forth
Rearrange the data stack with dup, drop, swap, over, rot, nip, tuck and 2dup, and read each word's stack effect.