Calling doc on the value of a variable
I'm just starting out with Clojure and I was trying to implement vim's keywordprg, which displays documentation for the word under the cursor. I want to call the doc() function on the value of a variable, but I'm not having any luck:
user=> (let [x "println"] (doc x))
-------------------------
user/x
nil
In Perl, I think I could use the eval() function, but I'm not seeing anything comparable in Clojure. Any suggestions? Thanks!
April 3, 2025 at 9:56:06 AM EDT
*
FILLER