It almost certainly has something to do with my abysmal ignorance about
things Java, but I don't understand this difference:
(1)
user> (map Math/sqrt [5 6 16])
Unable to find static field: sqrt in class java.lang.Math
[Thrown class java.lang.RuntimeException]
(2)
user> (map #(Math/sqrt %) [5 6 16])
(2.23606797749979 2.449489742783178 4.0)
Thanks for helping me understand.
--Larry
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en