I want to exploit the properties of a Set but I don't see any way to append to an existing Set.
Here's what I have:
var mySet = Set<Int>()
I would like to do something like:
mySet.append(8)
...which isn't possible.
How can I add to a Set?
I discovered the 'insert' command; which is adequate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With