glsp icon indicating copy to clipboard operation
glsp copied to clipboard

Help: Get docstring for function

Open Machine-Jonte opened this issue 2 years ago • 0 comments

Hi, I wonder if there is a way to get the docstring of a function?

For example:

(defn foo (bar)
   "A function that prints bar" ; docstring
   (prn bar))

(prn (docstring foo)) ; Expected to print "A function that prints bar"

Machine-Jonte avatar Mar 24 '23 05:03 Machine-Jonte