Created
January 12, 2018 06:15
-
-
Save kakajika/f6ef7387fee80ab3b4e3430c19cee6a9 to your computer and use it in GitHub Desktop.
Simple zipWith method for Sequence in Swift.
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
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