Chapter 6
Protocol Extensions and Protocol Oriented Programming (POP)
Section 3
Protocol Extension with Type Constraints
We already learnt about generic type constraints in section 4. How can we apply what we learnt there to make our protocol extensions even more powerful? - Extend the sequence protocol - Add appropriate constraints to limit the extension only to types that can provide the capabilities we need - Define our own custom protocols to group together Standard Library types and make our protocol extension available to those types