What is the Slice compare logic in Swift

前端 未结 1 598
青春惊慌失措
青春惊慌失措 2021-02-20 04:09

Here\'s some code:

var arr1 = [1, 2, 3, 4]
var arr2 = [1, 2, 3, 4]

if arr1 == arr2 {
    println(\"Equal\")
} else {
    println(\"Not Equal\")
}
// console out         


        
1条回答
提交回复
热议问题