<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>MutableList -- the class of all mutable lists</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="___Mutable__Matrix.html">next</a> | <a href="_mutable__Identity_lp__Ring_cm__Z__Z_rp.html">previous</a> | <a href="___Mutable__Matrix.html">forward</a> | <a href="_mutable__Identity_lp__Ring_cm__Z__Z_rp.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>MutableList -- the class of all mutable lists</h1> <div class="single"><h2>Description</h2> <div><p>For an overview of lists and sequences, see <a href="_lists_spand_spsequences.html" title="">lists and sequences</a>.</p> <p/> Normally the entries in a mutable list are not printed, to prevent infinite loops in the printing routines. To print them out, use <a href="_peek.html" title="examine contents of an object">peek</a>.<table class="examples"><tr><td><pre>i1 : s = new MutableList from {a,b,c};</pre> </td></tr> <tr><td><pre>i2 : s#2 = 1234;</pre> </td></tr> <tr><td><pre>i3 : s o3 = MutableList{...3...} o3 : MutableList</pre> </td></tr> <tr><td><pre>i4 : peek s o4 = MutableList{a, b, 1234}</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="___Basic__List.html" title="the class of all basic lists">BasicList</a> -- the class of all basic lists</span></li> </ul> </div> <div class="waystouse"><h2>Types of mutable list :</h2> <ul><li><span><a href="___Bag.html" title="the class of all bags">Bag</a> -- the class of all bags</span></li> </ul> </div> <div class="waystouse"><h2>For the programmer</h2> <p>The object <a href="___Mutable__List.html" title="the class of all mutable lists">MutableList</a> is <span>a <a href="___Type.html">type</a></span>, with ancestor classes <a href="___Basic__List.html" title="the class of all basic lists">BasicList</a> < <a href="___Thing.html" title="the class of all things">Thing</a>.</p> </div> </div> </body> </html>