On Apr 19, 1:17 pm, Joel Gluth <joel.gl...@gmail.com> wrote: > (def floatarray (make-array Float/TYPE 2)) > (for [i (range (alength floatarray))] (aset floatarray i (float ([1 2] > i))))
You can just do (into-array Float/TYPE [1.0 2.0]) There is no need to explicitly cast the vector items as they would be boxed anyway as vectors currently can't contain primitives. -- 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