Created
January 7, 2019 14:17
-
-
Save andrevidela/a1a0689de6e232734700f34b0b1865db 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
/// A protocol for getting the magnitude of an object | |
protocol Magnitude { | |
associatedtype MagVal: Comparable | |
var magSquare: MagVal { get } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment