How do you implement a custom collection type in Swift?
In this screencast, Matt walks us through creating a Queue in Swift using generics to hold arbitrary data types. We'll be learning about collections by creating our own collection type. Watch along as we discuss the Swift language and how to construct a implementation of a custom collection. We'll be going over some guards and guarantees to constrain the types of data in our queue.
The Swift Programming Language (Swift 4.1): Generics