Swift: Compound Assignment Operator

Compound Assignment Operator combines the assignment operation with other operations. They don’t return a value. It mean the following expression  x = y +=10  can’t be written.

 

Leave a Reply