std:collections/IdentitySet
std:collections/IdentitySet
Section titled “std:collections/IdentitySet”Canonical occurrence:
protos/lib/collections/IdentitySet.protos· Protos revision:e99b712ecf658a527b1fe82c8beba2c1286d8dc9.
IdentitySets represented as IdentityMaps keyed by their members (=== identity).
Observable top-level slots
Section titled “Observable top-level slots”This page lists the complete mechanically observable top-level slot inventory required by D067. Authored documentation, when present, is canonical D062 prose; mechanical presence alone does not create a stability or compatibility promise.
Adds element to set in place and answers set.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
set,element -
Rest parameter: none
-
Source occurrence:
protos/lib/collections/IdentitySet.protos:38 -
Exact source page: open in the source browser
Answers a fresh IdentitySet containing elements.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters: none
-
Rest parameter:
elements -
Source occurrence:
protos/lib/collections/IdentitySet.protos:19 -
Exact source page: open in the source browser
contains
Section titled “contains”Answers whether element is a member of set.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
set,element -
Rest parameter: none
-
Source occurrence:
protos/lib/collections/IdentitySet.protos:28 -
Exact source page: open in the source browser
difference
Section titled “difference”Answers a fresh IdentitySet of the members of left that are not in right.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
left,right -
Rest parameter: none
-
Source occurrence:
protos/lib/collections/IdentitySet.protos:81 -
Exact source page: open in the source browser
Calls block(element) for each member of set and answers set.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
set,block -
Rest parameter: none
-
Source occurrence:
protos/lib/collections/IdentitySet.protos:50 -
Exact source page: open in the source browser
intersection
Section titled “intersection”Answers a fresh IdentitySet of the members of left that are also in right.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
left,right -
Rest parameter: none
-
Source occurrence:
protos/lib/collections/IdentitySet.protos:70 -
Exact source page: open in the source browser
isDisjoint
Section titled “isDisjoint”Answers whether left and right have no member in common.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
left,right -
Rest parameter: none
-
Source occurrence:
protos/lib/collections/IdentitySet.protos:125 -
Exact source page: open in the source browser
isSubset
Section titled “isSubset”Answers whether every member of left is a member of right.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
left,right -
Rest parameter: none
-
Source occurrence:
protos/lib/collections/IdentitySet.protos:105 -
Exact source page: open in the source browser
isSuperset
Section titled “isSuperset”Answers whether every member of right is a member of left.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
left,right -
Rest parameter: none
-
Source occurrence:
protos/lib/collections/IdentitySet.protos:115 -
Exact source page: open in the source browser
remove
Section titled “remove”Removes element from set in place and answers set.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
set,element -
Rest parameter: none
-
Source occurrence:
protos/lib/collections/IdentitySet.protos:44 -
Exact source page: open in the source browser
sameMembers
Section titled “sameMembers”Answers whether left and right have exactly the same members.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
left,right -
Rest parameter: none
-
Source occurrence:
protos/lib/collections/IdentitySet.protos:92 -
Exact source page: open in the source browser
Answers the number of members of set.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
set -
Rest parameter: none
-
Source occurrence:
protos/lib/collections/IdentitySet.protos:33 -
Exact source page: open in the source browser
Answers a fresh IdentitySet of the members of left or right.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
left,right -
Rest parameter: none
-
Source occurrence:
protos/lib/collections/IdentitySet.protos:58 -
Exact source page: open in the source browser
Exact module source · Standard-library API · Standard library overview