Operator 演算子

==(_:_:)

Returns a Boolean value indicating whether two arrays contain the same elements in the same order. 2つの配列が同じ要素を同じ順序で含むかどうかを指し示すブール値を返します。

Declaration 宣言

static func == (lhs: Array<Element>, rhs: Array<Element>) -> Bool
Available when Element conforms to Equatable. ElementEquatableに準拠する時に利用可能です。

Parameters パラメータ

lhs

An array to compare. 比較する配列。

rhs

Another array to compare. 比較するもう一方の配列。

Discussion 解説

You can use the equal-to operator (==) to compare any two arrays that store the same, Equatable-conforming element type. あなたは、同等演算子(==)を使って同じ、Equatable準拠の、要素型を格納する任意の2つの配列を比較できます。

Relationships 関係

From Protocol 由来プロトコル

See Also 参照

Comparing Arrays 配列の比較