fleabitdev / glsp

The GameLisp scripting language
https://gamelisp.rs/
Apache License 2.0
395 stars 13 forks source link

Help: Get docstring for function #37

Open Machine-Jonte opened 1 year ago

Machine-Jonte commented 1 year ago

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"