Created
April 27, 2016 16:43
-
-
Save Bashta/2d02059deca9d92466c06b6598b37cd8 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
| public protocol HasAsoluteValue { | |
| func absolute() -> Self | |
| } | |
| public func test<T: HasAsoluteValue>(x: T) -> T { | |
| return x.absolute() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment