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)))
Written by Felipe Elias Philipp
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Clojure
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#