public
Last active

  • Download Gist
destructuring.clj
Clojure
1 2 3 4 5
(defn (power :is number? :or (throw 'Bad-input))
[(x :is number?)
(y :is [pos? integer?])
(n :is [pos? integer?] :is [neg? float?] :is [zero? double?] :or false)]
(/ x 0))

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.