Thanks for the answer Frank. Actually this was my mistake, I was looking for how to do this using Clojurescript thinking this was the Clojurescript group.
On Saturday, May 17, 2014 2:30:09 AM UTC-7, Frank Castellucci wrote: > > As per the documentation > http://clojuredocs.org/clojure_core/clojure.core/make-array you use this > to collect Java Class types into an array. > > Remember that a make-array return is a mutable type. > > For example, a string in clojure is backed by java's String class. If you > want to make a 3 member array of Strings: > > (def _ma (make-array String 3)) > > => (aset _ma 0 "Foo") > > "Foo" > > => _ma > > #<String[] [Ljava.lang.String;@2356cab0> > > => (aget _ma 0) > > "Foo" > > > However, in your case of wanting to use a multi-dimensional you could use > "to-array-2d" > http://clojuredocs.org/clojure_core/clojure.core/to-array-2dwhich > has examples. > > > > On Saturday, May 17, 2014 4:03:03 AM UTC-4, Colin Kahn wrote: >> >> Interested in seeing an example of how to use aget on a multi-dimensional >> array, and how to use make-array. So far I've had no luck getting either to >> work. >> > -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.