Skip to content

Commit 6fda1b7

Browse files
committed
Add isSubSet examples
1 parent 4fbe62b commit 6fda1b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Multiset/Multiset.playground/Contents.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ set.count(for: "Foo")
1818

1919
set.allItems
2020

21+
var set2 = Multiset<String>()
22+
set2.add("Foo")
23+
set2.add("Foo")
24+
25+
set2.isSubSet(of: set) // true
26+
set.isSubSet(of: set2) // false

0 commit comments

Comments
 (0)