f6gcrq
Last Updated: February 25, 2016
·
751
· felipeelias

Display the source of a funciton in Clojure REPL

Using the source function:

user => (source dec)

(defn dec
  "Returns a number one less than num."
  {:inline (fn [x] `(. clojure.lang.Numbers (dec ~x)))
   :added "1.0"}
  [x] (. clojure.lang.Numbers (dec x)))