Next: Set Primitive Operations Up: Discussion Previous: Reference Counting

### Comparisons

Collection and Container objects can be compared easily using the operations defined in the Container class on Page . For example the code in Figure illustrates a comparison between MSet and SortedList objects.

Figure 3.21: Comparisons Between Collections and Containers

Collection objects are compared with each other in the same way, as shown in Figure .

Figure 3.22: Comparisons between Collections