Answer the question
In order to leave comments, you need to log in
What is the correct way to write *= in Swift 2?
Hello!
A very stupid question, but still:
Why, for example, the entry:
result = 10
result *= 2 + 1
Answer the question
In order to leave comments, you need to log in
The order of operators is the same in almost all languages. 30 is the correct result
There are also += -= /= etc
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question