For an overview of lists and sequences, see lists and sequences.
Normally the entries in a mutable list are not printed, to prevent infinite loops in the printing routines. To print them out, use peek.
|
|
|
|
To construct a mutable list with a given length and whose entries are all null, provide an integer.
|
|
If a value is assigned at a position that is not yet present in a mutable list, then it grows accordingly, and any intermediate positions are filled with null.
|
|
|
When working with mutable lists, be careful not to turn a linear algorithm into a quadratic one by repeatedly appending to it. Compare the following:
|
|
|
|
The object MutableList is a type, with ancestor classes BasicList < Thing.
The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/Macaulay2Doc/ov_lists.m2:838:0.