How can I do exponentiation in clojure? For now I\'m only needing integer exponentiation, but the question goes for fractions too.
A simple one-liner using reduce:
(defn pow [a b] (reduce * 1 (repeat b a)))