Changes

Swift Operators and Expressions

31 bytes added, 15:46, 23 December 2015
Compound Assignment Operators
== Compound Assignment Operators ==
<google>ADSDAQBOX_FLOW</google>
In an earlier section we looked at the basic assignment operator (=). Swift provides a number of operators designed to combine an assignment with a mathematical or logical operation. These are primarily of use when performing an evaluation where the result is to be stored in one of the operands. For example, one might write an expression as follows: