0
What is the initial capacity of Set
What is the initial capacity of Set?
1 Odpowiedź
0
Great question. The Set Collection in Swift has many initialisers, some of which include init(), init(minimumCapacity:). When you call the empty initialiser the initial capacity is 0, however if you expect to have multiple values in your set, you’re better of using the minimumCapacity initialiser.