I am trying to get ONLY the docstring of a function in Clojure, nevertheless I have encountered several problems as all the functions that I find actually print the function signature + docstring.
So for example (doc map)
will actually print something like.
clojure.core/map
([f coll] [f c1 c2] [f c1 c2 c3] [f c1 c2 c3 & colls])
Returns a lazy sequence consisting of the result of applying f to the ...
I am only interested in getting the docstring not printing it nor having its namespace or arity. What I am looking for is something like
(get-doc function-name)
which would return a string with
"Returns a lazy sequence consisting of the result of applying f to the ..."
Is this possible in Clojure?