User Tools

Site Tools


crpl:docs:dup2

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Stack Manipulation

dup2

ArgumentsResultNotation
Two items on the stackA duplicate of the two original items n1 n2 – n1 n2 n1 n2

Description

Duplicates the top two items currently on the stack without removing the original pair.

Examples

# Create a set of 4 coordinates that define a square 
# of 10 dells either way from the unit's current coordinates 
CurrentCoords dup2 10 add swap 10 add swap
crpl/docs/dup2.1358489613.txt.gz · Last modified: 2014/10/01 15:02 (external edit)