std:collections/Set
std:collections/Set
Section titled “std:collections/Set”Canonical occurrence:
protos/lib/collections/Set.protos· Protos revision:e99b712ecf658a527b1fe82c8beba2c1286d8dc9.
Sets represented as ordinary Maps keyed by their members (ordinary hash plus ==
key equality).
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/Set.protos:39 -
Exact source page: open in the source browser
Answers a fresh Set containing elements.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters: none
-
Rest parameter:
elements -
Source occurrence:
protos/lib/collections/Set.protos:20 -
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/Set.protos:29 -
Exact source page: open in the source browser
difference
Section titled “difference”Answers a fresh Set 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/Set.protos:82 -
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/Set.protos:51 -
Exact source page: open in the source browser
intersection
Section titled “intersection”Answers a fresh Set 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/Set.protos:71 -
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/Set.protos:126 -
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/Set.protos:106 -
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/Set.protos:116 -
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/Set.protos:45 -
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/Set.protos:93 -
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/Set.protos:34 -
Exact source page: open in the source browser
Answers a fresh Set 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/Set.protos:59 -
Exact source page: open in the source browser
Exact module source · Standard-library API · Standard library overview