Returns a Boolean value indicating whether two arrays contain the same elements in the same order.
SDK
- Xcode 9.3+
Framework
- Swift Standard Library
Declaration
static func == (lhs: ContiguousArray <Element>, rhs: ContiguousArray <Element>) -> Bool
Available when Element conforms to Equatable.
Parameters
lhsAn array to compare.
rhsAnother array to compare.
Discussion
You can use the equal-to operator (==) to compare any two arrays that store the same, Equatable-conforming element type.