| Ordered Lists |
|
If we consider "the songs on my iPod" as a familiar example of a set, then "a playlist on my iPod" is the corresponding example of an ordered list. Key properties of ordered lists include:
Explicit notion for writing ordered lists is similar to that for sets; however, we use parentheses instead of curly braces. For example:
From now on, expressions with parentheses "( , , , )" and expressions with curly braces "{ , , , }" have very distinct meanings! The length of an ordered list is, intuitively speaking, just like the number of songs in a playlist. For example:
An ordered pair is an ordered list of length two. We will use ordered pairs very often in our study of the Web; we will use longer ordered lists less often. Also, we will never attempt to define the cardinality of an ordered list. Sets have cardinality. Ordered lists have length. Any element in an ordered list can itself be an ordered list or a set. Any object in a set can be a set or an ordered list. For example:
|