Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CharacterSet StringLiteralConvertible
extension CharacterSet: StringLiteralConvertible, ExtendedGraphemeClusterLiteralConvertible {
public init(stringLiteral value: String) {
self.init(charactersIn: value)
}
public init(extendedGraphemeClusterLiteral value: ExtendedGraphemeClusterType) {
self.init(charactersIn: value)
}
public init(unicodeScalarLiteral value: UnicodeScalarType) {
self.init(charactersIn: value)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment