Created
March 21, 2015 10:49
-
-
Save phamquochoan/574c6c8da4040dcc3dd0 to your computer and use it in GitHub Desktop.
Replace rawValue with custom operator
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
postfix operator .. { } | |
postfix func ..<T: RawRepresentable> (lhs: T) -> T.RawValue { | |
return lhs.rawValue | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment