Is there a typo in the example for pow (https://clojuredocs.org/clojure.math/pow)?
They give (math/pow) as an example but should it be (Math/pow) instead?
original author here.
> I guess they’re assuming that clojure.math is aliased to math
is completely right. I agree with @teodorlu that it would have clearer with an explicit require. These examples should be editable by anyone, so feel free to add to this and any others where I have been unclear!
I'm unable to log in on Clojuredocs thinking-face. Which I should probably ask about somewhere else.
They've fixed the login now -- see the #announcements thread from Jarrod Taylor about Nubank taking over http://clojuredocs.org -- and I updated the example that @zak.g.venter mentioned so it has a require of the ns in it.
I suspect many of the other examples of fns in that ns could do with the require being added to avoid similar confusion, given that the docs also repeatedly link to the java.lang.Math class.
I guess they're assuming that clojure.math is aliased to math
Math.pow also works, because it's calling the Java class by interop, but this doc is about the function from the Clojure library
Makes sense, thanks!
In my opinion, the example would be clearer with an explicit (require '[clojure.math :as math]) .