I don\'t see an exponentiation operator defined in the base arithmetic operators in the Swift language reference.
Is there really no predefined integer or float ex
I did it like so:
operator infix ** { associativity left precedence 200 } func ** (base: Double, power: Double) -> Double { return exp(log(base) * power) }