Chapter 6
Protocol Extensions and Protocol Oriented Programming (POP)
Section 2
Extending Collection Protocols
Now that we understand what protocol extensions are, what more can we do with them? What can we learn about how the Swift Standard Library actually works? - Start by showing how to evolve a generic type, showing some of the similarities and contrasts between generics and protocol-oriented programming - Implement a protocol extension and discover how the protocol encapsulates the information we need - Discover added functionality to all types that adopt the protocols; the Standard Library's, our own, or even third-party types