3 ms·
`Math/pow` is not a function. If it were, you would be able to do things like this: (map (partial Math/pow 2) [0 1 2 3])
by Oreb 5y ago
`Math/pow` is not a function. If it were, you would be able to do things like this:
(map (partial Math/pow 2) [0 1 2 3])
- dig1 5y ago"Math/pow" is actually a function on JVM level. Clojure functions are objects with special callable method. This will work: (map (partial #(Math/pow %1 %2) 2) [0 1 2 3])