# ^= operator

Source: https://ref.dm-lang.org/operator/caretequals

### Format
> `A ^= B`

Set A equal to A ^ B. It is shorthand for A = A ^ B.

If A and B are lists, any items that are found in both lists are removed from A, and then any items found only in B are added to A.

### See also
- [^ operator](https://ref.dm-lang.org/operator/caret.md)
- [operators](https://ref.dm-lang.org/operator/index.md)
