The “set” part of
CharacterSetrefers not toSetfrom the Swift standard library, but instead to theSetAlgebraprotocol, which bestows the type with the same interface:contains(_:),insert(_:),union(_:),intersection(_:), and so on. CharacterSet - NSHipster