RosettaCodeData/Task/Exponentiation-operator/Clojure/exponentiation-operator.clj

2 lines
40 B
Clojure

(defn ** [x n] (reduce * (repeat n x)))