Skip to content

Instantly share code, notes, and snippets.

@kakajika
Created January 12, 2018 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kakajika/f6ef7387fee80ab3b4e3430c19cee6a9 to your computer and use it in GitHub Desktop.
Save kakajika/f6ef7387fee80ab3b4e3430c19cee6a9 to your computer and use it in GitHub Desktop.
Simple zipWith method for Sequence in Swift.
extension Sequence {
func zipWith<S2: Sequence>(_ seq2: S2) -> Zip2Sequence<Self, S2> {
return zip(self, seq2)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment