Sometimes it’s useful to implement custom collection types. For example, you may want to keep the order of the iteration of the objects in the collection hidden from the consumer. Here’s how you can make an iterable Swift collection type with SequenceType.