Created
February 19, 2015 06:08
-
-
Save masters3d/797fb16172cc3494800c to your computer and use it in GitHub Desktop.
Power in Swift
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
infix operator ** { associativity left precedence 160 } | |
func ** (num: Double, power: Double) -> Double{ | |
return pow(num, power) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment