f6gcrq
Last Updated: February 25, 2016
·
727
· felipeelias
F6faa607e4f541da71fbf8aea6f99a7a

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)))
Say Thanks
Respond