Do you mean something like &quot;compound assignment operators&quot;? Apparently you can define custom operators like:<p><pre><code>    func += (inout left: Vector2D, right: Vector2D) {
        left = left + right
    }
</code></pre>
<a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;ios&#x2F;documentation&#x2F;Swift&#x2F;Conceptual&#x2F;Swift_Programming_Language&#x2F;AdvancedOperators.html#&#x2F;&#x2F;apple_ref&#x2F;doc&#x2F;uid&#x2F;TP40014097-CH27-ID28" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;ios&#x2F;documentation&#x2F;Swift&#x2F;...</a>