Use R ::= QQ[t,x,y,z];
L := [34x+y^2,"a string", [], [TRUE, FALSE]]; -- a list
L[1]; -- the list's 1st component
y^2 + 34x
-------------------------------
L[2];
a string
-------------------------------
L[3];
[ ]
-------------------------------
L[4]; -- The 4th component is a list, itself;
[TRUE, FALSE]
-------------------------------
L[4][1]; -- its 1st component;
TRUE
-------------------------------
L[4,1]; -- the same.
TRUE
-------------------------------
[1,"a"]+[2,"b"]; -- Note: one may add lists if their components are
[3, "ab"] -- compatible (see "Algebraic Operators").
-------------------------------
L := [x^2-y,ty^2-z^3];
I := Ideal(L);
I;
Ideal(x^2 - y, ty^2 - z^3)
-------------------------------
|