A large part of the Swift Standard Library is concerned with Generators, Sequences and Collections and functions that operate on them, so itโs pretty important to have a good understanding of them.
I was going to write a blog post about how to create and use Swift generators and sequences. But while I was trying to understand them myself, I found this post over at iOSDeveloperZone.
Go read that, and pretend that I wrote something as helpful.