Hi, On Apr 19, 12:17 pm, Joel Gluth <[email protected]> wrote:
> (def floatarray (make-array Float/TYPE 2)) > (for [i (range (alength floatarray))] (aset floatarray i (float ([1 2] > i)))) > > Aside from the misuse of 'for' (which then needs to be iterated to > cause the side-effects), what am I missing here? Hints on idiomatic > Clojure as well as my primitives question are most welcome. 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. Sincerely Meikel -- 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
