Swap

From WikiManual
Revision as of 22:31, 19 February 2014 by PhiNotPi (talk | contribs) (created page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This swaps the top two values on the integer stack. If there are fewer than two values on the stack, then the operator does nothing.

The following code stores a value of 5 in .up:

.up 5 swap store