How to make an iterable Swift collection type

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.

Continue reading How to make an iterable Swift collection type How to make an iterable Swift collection type