Created
March 9, 2017 21:02
-
-
Save jeremytregunna/f4c8edac50f11ed5dda22e2b3822b422 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| precedencegroup BindingPrecedence { | |
| associativity: left | |
| lowerThan: DefaultPrecedence | |
| higherThan: TernaryPrecedence | |
| } | |
| infix operator |>: BindingPrecedence | |
| public func |>(f1: @escaping Filter, f2: @escaping Filter) -> Filter { | |
| return { image in | |
| f2(f1(image)) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment