Swift Operators
Operators are special characters—usually drawn from mathematics—that are used to process evaluations, modify variable values, and combine values. Swift operators break down into categories by the function they perform:
Assignment operators
Arithmetic operators
Comparison operators
Logical operators
Bitwise operators
Nil-coalescing operators
Range operators
Refer to the following diagram:
Swift implements its assignment, arithmetic, comparison, logical, and bitwise operators nearly identically to other C-inspired languages, such as C++, Java, and C#—so your previous experience with these operators will apply directly to Swift programming.
In this lesson, we'll summarize this common set of operators, and only highlight unique Swift implementations. Should you need detailed information on the meaning of any of these operators, please refer to Apple's The Swift Programming Language guide ( https://developer.apple.com/library/content/documentation/Swift/Conceptual...