next up previous contents index
Next: Record Types (datatype) Up: Data Previous: Atomic Data Types

Sequences ([])


A sequence can contain any type, including other sequences, but each element in a sequence must be of the same type (sequences are homogeneous). The type of a sequence whose elements are of type tex2html_wrap_inline9701 , is specified as [ tex2html_wrap_inline9703 ]. For examples:


Sequences of characters can be written between double quotes,

but can also be written as a sequence of characters:


Empty sequences must be explicitly typed since the type cannot be determined from the elements.   The type of an empty sequences is specified by using empty square braces followed by the type of the elements. For example,



Appendix B.2 describes the functions that operate on sequences.

Jonathan Hardwick
Tue Nov 28 13:57:00 EST 1995