Skip to content

Instantly share code, notes, and snippets.

@pofat
Created May 19, 2019 16:06
Show Gist options
  • Save pofat/fad3879c797467de2d3efa00ca22f0eb to your computer and use it in GitHub Desktop.
Save pofat/fad3879c797467de2d3efa00ca22f0eb to your computer and use it in GitHub Desktop.
Definition of Sequence protocl
protocol Sequence {
associatedtype Element
associatedtype Iterator : IteratorProtocol where Iterator.Element == Element
func makeIterator() -> Iterator
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment