let a:Character = "a"
let b:Character = "b"
let compare = a == b
The compiler complains: it was not possible to find an overload for ==, which takes the provided arguments.
This is despite the fact that if you right-click on Character, you can easily find this ad.
func ==(lhs: Character, rhs: Character) -> Bool
Any suggestions? I can get around by assigning characters to strings and doing string comparisons, but I repeat thousands of characters. Of course, there is a quick way.
source
share