Summary
In this chapter we looked at how we can use the advanced bitwise AND, OR, XOR, and NOT operators to manipulate the bits of values stored in variables. We also looked at how we can use the left and right shift operators to shift bits to the left and right. We then saw how we can use overflow operators to change the default behavior for addition, subtraction, and multiplication so errors are not thrown if operations return values above the maximum or below the minimum values for a type.
In the second half of the chapter, we saw how we can add operator methods to types, which enables us to use the standard operators provided by Swift with our custom types. We also saw how we can create our own custom operators as well.
In the next chapter, we will look at how we can use grand central dispatch and operation queues to add concurrency and parallelism to our applications' code.