Sets / Set Collections in Swift (Episode 31)

Published: May 31, 2016, 2:50 p.m.

b"This Swift video tutorial we'll talk about creating Set collection variables. Sets are similar to arrays, but are unordered collections. You can check if a set contains an element using the .contains property. You can add or remove to a Set using .insert and .remove . You iterate through a set collection using a for loop. You can also compare collections using .isSubsetOf , .isSupersetOf , .isDisjointWith ."