Shallow copy
Brought to you by:
davidw
There should be a shallow copy option to the copy
command, or a separate command. As Alexandre Ferrieux
writes:
> While if one writes
>
> set m [copy -shallow $l]
>
> then only the toplevel is duplicated. This is useful
for example when
> sorting lists of vectors: you're interested in the
permutation of
> references to the vectors (sublists), but you don't
want to spend the
> time of duplicating them.