RosettaCodeData/Task/Exponentiation-operator/Sidef/exponentiation-operator-2.sidef
2016-12-05 23:44:36 +01:00

8 lines
103 B
Text

class Number {
method ⊙(exp) {
expon(self, exp)
}
}
say (3 ⊙ 10)
say (5.5 ⊙ -3)