Slide 11
Slide 11 text
SE-0143: Conditional Conformance1
/// Swift4
/// Returns `true` if these arrays contain the same elements.
public func ==(lhs: [Element], rhs: [Element]) -> Bool
where Element : Equatable
/// Swift4.1
extension Array: Equatable where Element: Equatable {
static func ==(lhs: Array, rhs: Array) -> Bool
}
[1,2,3] == [1,2,3] // ok
1 https://github.com/apple/swift-evolution/blob/master/proposals/0143-conditional-conformances.md
https://github.com/apple/swift/blob/master/docs/GenericsManifesto.md
11