July 2004
Intermediate to advanced
752 pages
35h 59m
English
An indicator of whether the values in a collection of multiplicity greater than one may contain duplicate values. A collection whose elements are not unique is a bag or a list.
Uniqueness is part of the multiplicity specification. It is a Boolean flag stating whether the values of a collection must be unique. If they are unique, the collection is a set. If they are not unique, the collection is a bag. The default is unique (the collection is a set).
A multiplicity indicator may contain the following keywords:
| set | The values must be unique. This is the default and the keyword may be (and usually is) omitted. |
| bag | The values need not be unique. Duplicates are permitted. |
Uniqueness and ordering may be combined in the following ...
Read now
Unlock full access