I was trying to do something I thought would be simple but has turned out to be not so and I think the solution might give me a deeper understanding of clojure so I figured I'd ask here.
I want to be able to run the following from a clojure REPL:
(map #(doc %) v)
where v
is a vector of...something, I'm not sure what. The goal was to print out the doc strings for some sequence of functions, but I'm not sure how to express that vector. I've tried a couple of things: (I'll pick a few functions out at random)
[+ - first set]
['+ '- 'first 'set]
[`+ `- `first `set]
[(var +) (var -) (var first) (var set)]
[`~+ `~- `~first `~set]
None work. I also tried to apply
the doc
function but that doesn't work since doc
is a macro and as such cannot be an argument to apply
. What am I missing?