I would expect (doc Math/exp)
to give me something but it doesn't.
Sure it's not a Clojure function, but still there should be some way to reach the documentation.
Closest thing that I can get is (javadoc Math)
.
I would prefer the actual doc from that page as a string:
static double exp(double a)
Returns Euler's number e raised to the power of a double value.
UPD: signature by reflection
Here's how I can get a signature:
(.toString (first (filter #(= (.getName %) "exp") (.getMethods Math))))
I'm hoping for a similar way to get the doc.
UPD: no doc by reflection
According question How to read Javadoc comments by reflection?, it's not possible to get the doc by reflection. I wonder if it's possible to re-use some of Eclipse code that does give access to docs.