Created
January 7, 2019 14:17
-
-
Save andrevidela/786b6b3e7a321ab23c967e0246dc5374 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
/// Protocol for addition with identity | |
protocol Additive { | |
static var addId: Self { get } | |
static func + (_ lhs: Self, _ rhs: Self) -> Self | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment