Operator 演算子

!=(_:_:)

Returns a Boolean value indicating whether two values are not equal. 2つの値が等しくないかどうかを指し示すブール値を返します。

Declaration 宣言

static func != (lhs: Bool, rhs: Bool) -> Bool

Parameters パラメータ

lhs

A value to compare. 比較する値。

rhs

Another value to compare. もう一方の比較する値。

Discussion 解説

Inequality is the inverse of equality. For any values a and b, a != b implies that a == b is false. 不等性は、同等性の裏返しです。何らかのabに対して、a != ba == bfalseであることを意味します。

This is the default implementation of the not-equal-to operator (!=) for any type that conforms to Equatable. Equatableに準拠するあらゆる型に対して、不等演算子(!=)の初期状態の実装です。

See Also 参照

Comparing Boolean Values ブール値を比較する