Full Command and Function Reference 3-53
DTAG has no effect on an untagged object.
Access: !°
TYPE LDTAG ( °is the left-shift of the Nkey).
Input/Output:
Level 1/Argument 1 Level 1/Item 1
tag:obj
→
obj
See also: LIST→, →TAG
DUP
Type: RPL Command
Description: Duplicate Object Command: DUP returns a copy of the argument (or the object on level 1).
Access: !°
STACK DUP ( °is the left-shift of the Nkey).
ISTACK DUP
` in RPN mode executes DUP when no command line is present.
Input/Output:
Level 1 Level 2 Level 1
obj
→
obj obj
See also: DUPN, DUP2, PICK
DUP2
Type: RPL Command
Description: Duplicate 2 Objects Command: DUP2 returns copies of the two objects on levels 1 and 2 of the
stack.
Access: !°
STACK LL DUP2 ( °is the left-shift of the Nkey).
ISTACK LL DUP2
Input/Output:
L
2
L
1
L
4
L
3
L
2
L
1
obj
2
obj
1
→
obj
2
obj
1
obj
2
obj
1
L = Level
See also: DUP, DUPN, PICK
DUPDUP
Type: RPL Command
Description: Duplicates an object twice.
Access: !°
STACK LL DUPDUP ( °is the left-shift of the Nkey).
ISTACK LL DUPDUP
Input/Output:
Level 1 Level 3 Level 2 Level 1
obj
→
obj obj obj
See also: DUP, NDUPN, DUPN, DUP2
DUPN
Type: RPL Command
Description: Duplicate n Objects Command: Takes an integer n from level 1 of the stack, and returns copies
of the objects on stack levels 2 through n + 1.