> Did you try (into-array Float/TYPE [(float 1.0) (float 2.0)])? I'm not > sure it works, though. I haven't much done with primitives up to now.
Aha. It does work. The key bit of information being that there was another way to call into-array (which I actually speculated about being a good addition - next time I have that thought, I'll bash it straight into the REPL and see if someone else has had it too). The page I had been looking at (http://clojure.org/java_interop#Java %20Interop-Arrays-%28into-array%20coll%29) didn't mention a way of specifying the element type explicitly with into-array, which was exactly what I needed :) And the happy clojure experiences continue... thanks very much. J PS Clojure 1.1 seems happy to make floats from [1.0 2.0], hurrah. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
