Returns a Boolean value indicating whether two values are equal.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
static func == <RHS>(lhs: String, rhs: RHS) -> Bool where RHS : StringProtocol
Parameters
lhs
A value to compare.
rhs
Another value to compare.
Discussion
Equality is the inverse of inequality. For any values a
and b
, a == b
implies that a != b
is false
.
Note
This documentation comment was inherited from Equatable
.