[GAP Forum] immutable --> mutable lists
Dmytro Savchuk
savchuk at math.tamu.edu
Sat Jun 16 02:03:08 BST 2007
Dear Forum,
I have one simple question. Suppose we have an immutable list whose
entries are immutable lists (e.g. l := [ [1,2], [3,4] ] ). What is the
easiest way to make a mutable copy of this structure (so that the
entries become also mutable). The one I came up with is obvious
List(l, x->List(x));
It works here (where I need it), but what if the dimension of the list
is bigger than 2? Maybe there is something more general? Or it is
necessary to use some recursion?
Thank you!
Dmytro Savchuk
More information about the Forum
mailing list