Equal to operator (==) : It is used to compare two variables. So for a = b == c means. First compare b & c, if they are equal then it returns true to a otherwise it returns false to a . That’s how a is assigned the value.
Read moreWhat is pattern matching in Swift?
In Swift, there are two basic kinds of patterns: those that successfully match any kind of value , and those that may fail to match a specified value at runtime. The first kind of pattern is used for destructuring values in simple variable, constant, and optional bindings.
Read moreWhat does === mean in Swift?
The identical-to operator ( === ) returns false when comparing two references to different object instances, even if the two instances have the same value.
Read more