Re: Creating an empty string array

2011-03-28 Thread Konrad Hinsen
On 28 Mar 2011, at 22:06, Alan wrote: (into-array String []) (make-array String 0) Thanks! Konrad. -- 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

Re: Creating an empty string array

2011-03-28 Thread Max Penet
into-array can do that for you: user=> (doc into-array) - clojure.core/into-array ([aseq] [type aseq]) Returns an array with components set to the values in aseq. The array's component type is type if provided, or the type of the first value in aseq if present, or Obj

Re: Creating an empty string array

2011-03-28 Thread Alan
(into-array String []) (make-array String 0) On Mar 28, 12:58 pm, Konrad Hinsen wrote: > For interfacing with some Java code I need to create an empty string   > array in Clojure. Is that possible somehow? The only way I know to   > create a string array is > >         (into-array ["a" "b"]) > >