User Tools

Site Tools


4rpl:commands:dup

Index

dup

dup

Description

Duplicates the item currently on the stack without removing the original item.

:WARNING: If you do the following, or something similar: CreateList dup ->list1 ->list2 This will create a shallow copy of the list, so that any changes made to them will affect both. Use DeepCopy.

Examples

trace2(42 dup) #prints '42 42'

Index

4rpl/commands/dup.txt · Last modified: 2024/02/14 21:25 by digitalizedMind