Some of Swift's control flow and control transfer statements are either considerably more flexible than their counterparts in other languages, or behave a little differently to what one may be accustomed to.
Control flow
Using switch
We saw in Chapter2, Basic Swift that a Swift switch statement will test for the equality of any type, not just Int, and that we can test for values within a range.
That's just the start. The switch statement is an extremely flexible mechanism, and is capable of reducing large amount of if else code to much more concise, readable, and elegant blocks of code.
Compound cases
Cases...