There is no array literal syntax yet, but (array 22 33) should work for you.
On Tue, Jan 10, 2012 at 2:46 PM, billh2233 <bill.har...@gmail.com> wrote: > How do I code an array literal in clojurescript that translates to an > array literal in javascript? What's the syntax? > > If I code in clojurescript: > ... [22 33] ... > it translates to a javascript vector: > cljs.core.Vector.fromArray([22,33]) > > Javascript (fx/Animation) needs an array defining an X Y point and > complains that this parameter is not an array. > > Thanks. > > -- > 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 -- 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