i1 : x = {a,b,c,d,e} |
i2 : #x |
i3 : x#2 |
The functions first and last retrieve the first and last elements of a list.
i4 : first x, last x |
i5 : g = {3,4,,5} |
i6 : peek g |
i7 : 10000*{3,4,5} + {1,2,3} |
i8 : y = {{a,b,c},{d,{e,f}}} |
i9 : #y |
i10 : flatten y |
i11 : z = {{a,1},{b,2},{c,3}} |
i12 : isTable z |
i13 : MatrixExpression z |
The class of all lists is List, and the class of all basic lists, useful for deriving news types of list which do not inherit methods for treating lists as vectors, is BasicList.