We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f8becb commit 7be8994Copy full SHA for 7be8994
Ordered Set/README.md
@@ -51,11 +51,6 @@ Lets take a look at the insert function first. The insert function first checks
51
if exists(item) {
52
return // don't add an item if it already exists
53
}
54
- // if the set is initially empty, we need to simply append the item to internalSet
55
- if count == 0 {
56
- internalSet.append(item)
57
- return
58
- }
59
60
for i in 0..<count {
61
if internalSet[i] > item {
0 commit comments