Created
January 7, 2019 14:17
-
-
Save andrevidela/d006d093686aad5dd2a0b9d9ce044e0d 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
// Ints are Additive, the identity is 0 | |
extension Int: Additive { | |
static var addId: Int { return 0 } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment