A sequence is an ordered collection of things enclosed by parentheses and separated by commas. Use # to get the length of a sequence of to get one of the elements.

i1 : v = (a,b,c) o1 = (a, b, c) o1 : Sequence |

i2 : #v o2 = 3 |

i3 : v#2 o3 = c o3 : Symbol |

To convert sequences to and from other types of BasicList, in addition to toSequence, one may use new.

i4 : new Array from (a,b,c) o4 = [a, b, c] o4 : Array |

i5 : new Sequence from [a,b,c] o5 = (a, b, c) o5 : Sequence |

For an overview of lists and sequences, see lists and sequences.

- IndexedVariable .. IndexedVariable -- sequences of consecutive indexed variables
- IndexedVariable ..< IndexedVariable -- sequences of consecutive indexed variables
- List .. List -- rectangular sequences of consecutive lists and sequences
- Sequence .. Sequence, see List .. List -- rectangular sequences of consecutive lists and sequences
- List ..< List -- rectangular sequences of consecutive lists and sequences
- Sequence ..< Sequence, see List ..< List -- rectangular sequences of consecutive lists and sequences
- Sequence | Sequence, see List | List -- join lists, sequences or arrays
- locate(Function), see locate -- locate source code
- locate(Nothing), see locate -- locate source code
- locate(Pseudocode), see locate -- locate source code
- locate(Sequence), see locate -- locate source code
- locate(Symbol), see locate -- locate source code
- String .. String -- a sequence of consecutive strings
- String ..< String -- a sequence of consecutive strings, not including the endpoint
- toSequence(BasicList), see toSequence -- convert to sequence
- ZZ .. ZZ -- sequences of consecutive integers
- ZZ ..< ZZ -- sequences of consecutive integers

- Sequence <- Thing, see <- -- assignment with left side evaluated
- Sequence == Sequence, see == -- equality
- chainComplex(Sequence), see chainComplex(List) -- make a chain complex
`CoherentSheaf Sequence`(missing documentation)- directSum(Sequence), see directSum -- direct sum of modules or maps
- frames(Sequence), see frames -- get the frames associated to a closure
- gcd(Sequence), see gcd -- greatest common divisor
- gradedModule(Sequence), see gradedModule -- make a graded module
- gradedModuleMap(Sequence), see gradedModuleMap -- make a map of graded modules
- HeaderType Sequence, see HeaderType -- a class of lists with abbreviated constructors
- help(Sequence), see help -- help command
- hh(Sequence,ProjectiveVariety), see hh -- Hodge numbers of a smooth projective variety
`hh^ZZ(Sequence)`(missing documentation)`HH_ZZ Sequence`(missing documentation)- hypertext(Sequence), see hypertext -- prepare hypertext for display
- ideal(Sequence), see ideal(List) -- make an ideal
- intersect(Sequence), see intersect -- compute an intersection
- lcm(Sequence), see lcm -- least common multiple
- makePackageIndex(Sequence), see makePackageIndex
- Matrix _ Sequence -- get entry of matrix
- MutableMatrix _ Sequence, see Matrix _ Sequence -- get entry of matrix
- methods(Sequence), see methods -- list methods
- Module / Sequence, see Module / Module -- quotient module
- monomialIdeal(Sequence), see monomialIdeal(Matrix) -- monomial ideal of lead monomials
- MutableMatrix _ Sequence = Thing -- assignment to an element of a mutable matrix
- options(Sequence), see options(Function) -- get optional arguments and default values for a function that accepts them
- package(Sequence), see package -- get containing package
- read(Sequence) -- read from a file
- Ring / Sequence, see Ring / Ideal -- make a quotient ring
`SheafOfRings Sequence`(missing documentation)- String ^ Sequence -- vertically stacked copies of a string
- String _ Sequence -- substring
`submatrixByDegrees(Matrix,Sequence,Sequence)`(missing documentation)- subsets(Sequence,ZZ), see subsets -- produce the subsets of a set or list
- substring(Sequence,String), see substring -- extract part of a string
- unique(Sequence), see unique -- eliminate duplicates from a list
- vars(Sequence), see vars(List) -- a sequence of variables
- WrapperType Sequence, see WrapperType -- a class of lists with abbreviated constructors

The object Sequence is a type, with ancestor classes VisibleList < BasicList < Thing.