Array Extension For Equatable Protocol
extension Array: Equatable where Element: Equatable {
static func ==(lhs: Array<Element>, rhs: Array<Element>) -> Bool {
let count = lhs.count
if count != rhs.count { return false }
for x in 0..<count {
if lhs[x] != rhs[x] { return false }
}
return true
}
}