Created
September 12, 2018 08:23
-
-
Save Francescu/8ffb922f0572d99a1fca1826cc94c66d to your computer and use it in GitHub Desktop.
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
import Foundation | |
infix operator .. | |
func ..<T:AnyObject>(lhs: T, rhs:(T) -> Void) -> T { | |
rhs(lhs) | |
return lhs | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment