AddAssign
public protocol AddAssign[Other = Self]Raw protocol backing the += operator.
In-place mutation lets conforming types avoid the temporary that a
self = self + other rewrite would produce — important for collections
(e.g. Array += other) and other types where the binary + would copy.
Methods
mutating func addAssign(Other)
mutating func addAssign(Other)Mutates self to self + other.
Defined in lang/std/core/assign.ks