Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftcustom operatorsSingle-choice MCQ

When you declare a new custom operator like `**` for exponentiation, what must you do BEFORE you can implement it as a function?

infix operator ** : MultiplicationPrecedence func ** (base: Double, exp: Double) -> Double { pow(base, exp) }