4.7.2 list expressions
----------------------

A list expression is:
1. the empty list list()
2. an identifier of type list
3. a function returning list
4. list expressions combined by the arithmetic operation +
5. a type cast to list

See 
Type conversion and casting.


Example:
  list l = "hello",1;
  l;
==> [1]:
==>    hello
==> [2]:
==>    1
  l = list();
  l;
==> empty list
  ring r =0,x,dp;
  factorize((x+1)^2);
==> [1]:
==>    _[1]=1
==>    _[2]=x+1
==> [2]:
==>    1,2
  list(1,2,3);
==> [1]:
==>    1
==> [2]:
==>    2
==> [3]:
==>    3

<font size="-1">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User manual for <a href="http://www.singular.uni-kl.de/"><i>Singular</i></a> version 2-0-4, October 2002,
generated by <a href="http://www.gnu.org/software/texinfo/"><i>texi2html</i></a>.
</font>

</body>
</html>
