The == or equality operator checks whether the two operands are equal . What equal means for an object depends on the implementation of the class or structure. For the NSArray class, the contents of the arrays are compared. In the above example, arr1 is equal to arr2 because the values stored in the arrays are equal.
Read moreWhat does || mean in Swift?
|| Called Logical OR Operator . If any of the two operands is non-zero, then the condition becomes true.
Read moreWhat _ means in Swift?
_ : The under score operator is usually used in swift function definition. It is used to replace the function parameter’s external label.
Read more