Instance Method

formIntersection(with:)

Modifies the receiver so it contains only characters that exist in both the receiver and another set.

Declaration

func formIntersection(with otherSet: CharacterSet)

Parameters

otherSet

The character set with which to perform the intersection.

See Also

Combining Character Sets

func formUnion(with: CharacterSet)

Modifies the receiver so it contains all characters that exist in either the receiver or another set.