Advertising

The 'one' value isn't being unwrapped; the 'two' value is being wrapped in an
optional, and then compared. In effect, it's doing:
let result = one == Optional(two)
This allows you to pass in non-optional values to functions that take optional
arguments, e.g.
func printme(_ i:Int?) { print("\(i)") }
printme(one)
printme(two)
Alex