6.7. Summary
A set is determined by its members, so order and repetition don’t matter, e.g., {3, 6} = {6, 3, 6}. A bag or multiset makes repetition significant, e.g., [3, 6] = [6, 3] but [3, 6] ≠ [3, 6, 6]. A sequence is an ordered bag, e.g., (3, 6) ≠ (6, 3). A set A is a subset of B (written A ⊆ B) iff each member of A belongs to B; in this case B is a superset of A. A is a proper subset of B iff A ⊆ B and A ≠ B. A and B are mutually exclusive or disjoint iff they have no common members, i.e., their intersection, A ∩ B = { }. If sets have common members they overlap; if each also has extra members, we have a case of proper overlap.
CSDP step 6 adds any value, set-comparison (subset, equality, exclusion), and subtype constraints. A value constraint ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access