-
-
Save fitomad/42d8b5cd278b503b162cac3218176e58 to your computer and use it in GitHub Desktop.
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
public struct Potencias | |
{ | |
/// Elevar a 2 | |
@Power(2) public var numero = 10 | |
/** | |
Salida detallada de la operación | |
*/ | |
public func show() -> Void | |
{ | |
print("\(self._numero.value) elevado a \(self._numero.power) = \(self.numero)") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment