I want to use **
to overload an exponent function. I works if I use something like "^" but the python way of doing is **
and I would like to use that with Swift. Any way to do that?
error: Operator implementation without matching operator declaration
@infix func ** (num: Double, power: Double) -> Double{
return pow(num, power)
}
println(8.0**3.0) // Does not work