Created
May 25, 2017 17:15
-
-
Save guidomb/b313667616612fc3e0c74c02a066dd8b to your computer and use it in GitHub Desktop.
Fix to address problems like https://github.com/apple/swift-corelibs-foundation/pull/995/files
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 filter<A, B>(_ isIncluded: (A, B) -> Bool) -> Self { | |
return self.filter { isIncluded($0.0, $0.1) } | |
} | |
func filter<A, B, C>(_ isIncluded: (A, B, C) -> Bool) -> Self { | |
return self.filter { isIncluded($0.0, $0.1, $0.2) } | |
} | |
} | |
// and so on .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment