Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 3377

Macaulay2-1.3.1-8.fc15.i686.rpm

<?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>BasicList -- the class of all basic lists</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_hash_sptables.html">next</a> | <a href="___Array.html">previous</a> | forward | <a href="___Visible__List.html">backward</a> | <a href="_lists_spand_spsequences.html">up</a> | <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>
<div><a href="index.html" title="">Macaulay2Doc</a> > <a href="___The_sp__Macaulay2_splanguage.html" title="">The Macaulay2 language</a> > <a href="_lists_spand_spsequences.html" title="">lists and sequences</a> > <a href="___Basic__List.html" title="the class of all basic lists">BasicList</a></div>
<hr/>
<div><h1>BasicList -- the class of all basic 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>
A basic list is a sequence of expressions indexed by a seequence of consecutive integers of the form <tt>0</tt>, <tt>1</tt>, ..., <tt>N-1</tt>.  The number <tt>N</tt> is called the length of the list.<p/>
There are various types of basic lists, depending on the application, and they are displayed in different ways.  The types first encountered are those of type <a href="___Visible__List.html" title="the class of all visible lists">VisibleList</a>, but new types are easy to introduce.  In the following example we introduce a new type of basic list called <tt>L</tt>.<table class="examples"><tr><td><pre>i1 : L = new Type of BasicList

o1 = L

o1 : Type</pre>
</td></tr>
<tr><td><pre>i2 : x = new L from {a,b,c,d}

o2 = L{a, b, c, d}

o2 : L</pre>
</td></tr>
<tr><td><pre>i3 : join(x,x)

o3 = L{a, b, c, d, a, b, c, d}

o3 : L</pre>
</td></tr>
</table>
</div>
</div>
<div class="waystouse"><h2>Types of basic list :</h2>
<ul><li><span><a href="___Command.html" title="the class of all commands">Command</a> -- the class of all commands</span></li>
<li><span><a href="___Constant.html" title="">Constant</a></span></li>
<li><span><a href="___Document__Tag.html" title="the class of all document tags">DocumentTag</a> -- the class of all document tags</span></li>
<li><span><a href="___Eliminate.html" title="elimination order">Eliminate</a> -- elimination order</span></li>
<li><span><a href="___Expression.html" title="the class of all expressions">Expression</a> -- the class of all expressions</span></li>
<li><span><a href="___File__Position.html" title="the class of all file positions">FilePosition</a> -- the class of all file positions</span></li>
<li><span><a href="___Forest__Node.html" title="a type of basic list used to represent a forest, i.e., a list of rooted trees">ForestNode</a> -- a type of basic list used to represent a forest, i.e., a list of rooted trees</span></li>
<li><span><a href="___Indeterminate__Number.html" title="the class of all indeterminate numbers">IndeterminateNumber</a> -- the class of all indeterminate numbers</span></li>
<li><span><a href="___Indexed__Variable.html" title="the class of all indexed variables">IndexedVariable</a> -- the class of all indexed variables</span></li>
<li><span><a href="___Infinite__Number.html" title="the class of all infinite numbers">InfiniteNumber</a> -- the class of all infinite numbers</span></li>
<li><span><a href="___Lower__Bound.html" title="the class of lower bound objects">LowerBound</a> -- the class of lower bound objects</span></li>
<li><span><a href="___Manipulator.html" title="the class of all file manipulators">Manipulator</a> -- the class of all file manipulators</span></li>
<li><span><a href="___Mutable__List.html" title="the class of all mutable lists">MutableList</a> -- the class of all mutable lists</span></li>
<li><span><a href="___Option.html" title="the class of all pairs x => y">Option</a> -- the class of all pairs x => y</span></li>
<li><span><a href="___Partition.html" title="a type of list representing a partition of a natural number">Partition</a> -- a type of list representing a partition of a natural number</span></li>
<li><span>Hybrid, see <span><a href="../../PrimaryDecomposition/html/_primary__Decomposition_lp..._cm_sp__Strategy_sp_eq_gt_sp..._rp.html" title="">primaryDecomposition(..., Strategy => ...)</a></span></span></li>
<li><span><a href="___Product__Order.html" title="product ordering">ProductOrder</a> -- product ordering</span></li>
<li><span><a href="___Pushforward__Computation.html" title="a type of list used internally">PushforwardComputation</a> -- a type of list used internally</span></li>
<li><span><a href="___Ring__Element.html" title="the class of all ring elements handled by the engine">RingElement</a> -- the class of all ring elements handled by the engine</span></li>
<li><span><a href="___Sum__Of__Twists.html" title="the class of all sums of twists">SumOfTwists</a> -- the class of all sums of twists</span></li>
<li><span><a href="___Time.html" title="the class of all timing results">Time</a> -- the class of all timing results</span></li>
<li><span><a href="___Tree__Node.html" title="a type of basic list used to represent a rooted tree">TreeNode</a> -- a type of basic list used to represent a rooted tree</span></li>
<li><span><a href="___U__R__L.html" title="a type representing a URL">URL</a> -- a type representing a URL</span></li>
<li><span><a href="___Vector.html" title="the class of all elements of free modules that are handled by the engine">Vector</a> -- the class of all elements of free modules that are handled by the engine</span></li>
<li><span><a href="___Visible__List.html" title="the class of all visible lists">VisibleList</a> -- the class of all visible lists</span></li>
</ul>
<h2>Functions and methods returning a basic list :</h2>
<ul><li><span><a href="_append_lp__Basic__List_cm__Thing_rp.html" title="append an element to a list">append(BasicList,Thing)</a> -- append an element to a list</span></li>
<li><span><a href="_apply_lp__Basic__List_cm__Basic__List_cm__Function_rp.html" title="apply a function to pairs of elements, one from each list">apply(BasicList,BasicList,Function)</a> -- apply a function to pairs of elements, one from each list</span></li>
<li><span><a href="_apply_lp__Basic__List_cm__Function_rp.html" title="apply a function to each element of a list">apply(BasicList,Function)</a> -- apply a function to each element of a list</span></li>
<li><span><a href="_drop_lp__Basic__List_cm__List_rp.html" title="">drop(BasicList,List)</a></span></li>
<li><span><a href="_drop_lp__Basic__List_cm__Z__Z_rp.html" title="">drop(BasicList,ZZ)</a></span></li>
<li><span>mergePairs(BasicList,BasicList,Function), see <span><a href="_merge__Pairs.html" title="merge sorted lists of pairs">mergePairs</a> -- merge sorted lists of pairs</span></span></li>
<li><span><a href="_prepend_lp__Thing_cm__Basic__List_rp.html" title="add an element to the beginning of a list">prepend(Thing,BasicList)</a> -- add an element to the beginning of a list</span></li>
<li><span><a href="_reverse_lp__Basic__List_rp.html" title="reverse a list">reverse(BasicList)</a> -- reverse a list</span></li>
<li><span><a href="_select_lp__Basic__List_cm__Function_rp.html" title="select elements from a list">select(BasicList,Function)</a> -- select elements from a list</span></li>
<li><span><a href="_select_lp__Z__Z_cm__Basic__List_cm__Function_rp.html" title="select a limited number of elements from a list">select(ZZ,BasicList,Function)</a> -- select a limited number of elements from a list</span></li>
<li><span>splice(BasicList), see <span><a href="_splice.html" title="remove subsequences">splice</a> -- remove subsequences</span></span></li>
<li><span><a href="_take_lp__Basic__List_cm__List_rp.html" title="">take(BasicList,List)</a></span></li>
<li><span><a href="_take_lp__Basic__List_cm__Z__Z_rp.html" title="">take(BasicList,ZZ)</a></span></li>
</ul>
<h2>Methods that use a basic list :</h2>
<ul><li><span><a href="__sh_sp__Basic__List.html" title="length"># BasicList</a> -- length</span></li>
<li><span><a href="_all_lp__Basic__List_cm__Basic__List_cm__Function_rp.html" title="whether all corresponding elements of a pair of lists satisfy a condition">all(BasicList,BasicList,Function)</a> -- whether all corresponding elements of a pair of lists satisfy a condition</span></li>
<li><span><a href="_all_lp__Basic__List_cm__Function_rp.html" title="whether all elements of a list satisfy a specified condition">all(BasicList,Function)</a> -- whether all elements of a list satisfy a specified condition</span></li>
<li><span><a href="_any_lp__Basic__List_cm__Basic__List_cm__Function_rp.html" title="whether any corresponding elements of a pair of lists satisfy a condition">any(BasicList,BasicList,Function)</a> -- whether any corresponding elements of a pair of lists satisfy a condition</span></li>
<li><span><a href="_any_lp__Basic__List_cm__Function_rp.html" title="whether any elements of a list satisfy a specified condition">any(BasicList,Function)</a> -- whether any elements of a list satisfy a specified condition</span></li>
<li><span><a href="___Basic__List_sp_sh_sp__Z__Z.html" title="get element from list">BasicList # ZZ</a> -- get element from list</span></li>
<li><span><a href="___Basic__List_sp_sh_qu_sp__Z__Z.html" title="check for element in list">BasicList #? ZZ</a> -- check for element in list</span></li>
<li><span>concatenate(BasicList), see <span><a href="_concatenate.html" title="join strings">concatenate</a> -- join strings</span></span></li>
<li><span>horizontalJoin(BasicList), see <span><a href="_horizontal__Join.html" title="join nets or strings horizontally">horizontalJoin</a> -- join nets or strings horizontally</span></span></li>
<li><span>maxPosition(BasicList), see <span><a href="_max__Position.html" title="position of largest element">maxPosition</a> -- position of largest element</span></span></li>
<li><span>mingle(BasicList), see <span><a href="_mingle.html" title="mingle elements of several lists">mingle</a> -- mingle elements of several lists</span></span></li>
<li><span>minPosition(BasicList), see <span><a href="_min__Position.html" title="position of smallest element">minPosition</a> -- position of smallest element</span></span></li>
<li><span>pack(BasicList,ZZ), see <span><a href="_pack.html" title="pack elements of a list into shorter ones">pack</a> -- pack elements of a list into shorter ones</span></span></li>
<li><span>pack(ZZ,BasicList), see <span><a href="_pack.html" title="pack elements of a list into shorter ones">pack</a> -- pack elements of a list into shorter ones</span></span></li>
<li><span><a href="_scan_lp__Basic__List_cm__Function_rp.html" title="apply a function to each element of a list">scan(BasicList,Function)</a> -- apply a function to each element of a list</span></li>
<li><span>stack(BasicList), see <span><a href="_stack.html" title="join nets or string vertically">stack</a> -- join nets or string vertically</span></span></li>
<li><span><a href="_to__List_lp__Basic__List_rp.html" title="list of elements">toList(BasicList)</a> -- list of elements</span></li>
<li><span>toSequence(BasicList), see <span><a href="_to__Sequence.html" title="convert to sequence">toSequence</a> -- convert to sequence</span></span></li>
</ul>
</div>
<div class="waystouse"><h2>For the programmer</h2>
<p>The object <a href="___Basic__List.html" title="the class of all basic lists">BasicList</a> is <span>a <a href="___Type.html">type</a></span>, with ancestor class <a href="___Thing.html" title="the class of all things">Thing</a>.</p>
</div>
</div>
</body>
</html>