OperatorSwift

+=(_:_:)

Adds two values and stores the result in the left-hand-side variable.

  • Required.

static func += (lhs: inout Self, rhs: Self)

Parameters

lhs

The first value to add.

rhs

The second value to add.