Created
March 27, 2017 17:02
-
-
Save JohnSundell/92bdfcf9fa789165a469e80d6f1c5efe to your computer and use it in GitHub Desktop.
Code sample #2 from https://medium.com/@johnsundell/swift-sequences-the-art-of-being-lazy-5b4bd99b159a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ModelSequence: Sequence { | |
func makeIterator() -> ModelIterator { | |
return ModelIterator() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment