-
-=
- subtracts the second Int value from the first. For Float values, see -..
Int
Float
-.
3 - 1 //-> 2 1 - 10 //-> -9
You can use -= to subtract and assign to a variable.
let i = 3 i -= 1 i //-> 2