Created
January 29, 2018 21:24
-
-
Save olbrichj/fd38f73f94aeeebb75261c4736685dbe 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 OperationChaining { | |
associativity: left | |
} | |
infix operator ==> : OperationChaining | |
@discardableResult | |
func ==><T: Operation>(lhs: T, rhs: T) -> T { | |
rhs.addDependency(lhs) | |
return rhs | |
} | |
operation1 ==> operation2 ==> operation3 // Execute in order 1 to 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment