

Swift supports the operators you may already know from languages like C, and improves several capabilities to eliminate common coding errors. For example, the addition operator ( +) adds two numbers, as in let i = 1 + 2, and the logical AND operator ( &) combines two Boolean values, as in if enteredDoorCode & passedRetinaScan.


An operator is a special symbol or phrase that you use to check, change, or combine values.
