Creating custom collections in Swift

Swift collection data structures such as Array and Dictionary are extremely useful, and they most likely provide all the functionality we need in 99% of cases. However, when they don’t exactly meet our requirements, we can roll our own custom collections. In this post, John Sundell shows us how we can do this by walking through the implementation of a custom dictionary data structure.