December 2018
Intermediate to advanced
414 pages
10h 19m
English
We have just declared this new toggling protocol. If we go back to the previous section about enums, you may remember that the State enum had a toggle() method. We can now declare that our enum, State, conforms to Toggling. As mentioned previously, we have many ways to declare our conformance.
Read now
Unlock full access