Re: Java vararg functions called from Clojure

2008-12-08 Thread Stephen C. Gilardi
On Dec 8, 2008, at 2:05 PM, Randall R Schulz wrote: Correct me if I'm wrong or insufficiently aware of the relevant issues, but is it not the case that such a helper function has an easier job for Format since it wants an array of Object. In other contexts, you have to know what the type of t

Re: Java vararg functions called from Clojure

2008-12-08 Thread Tom Emerson
On Mon, Dec 8, 2008 at 1:53 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> wrote: > Good call on it being a convenient function to have around. It's available > as clojure.core/format. There's also printf along the same lines. Steve, that is probably the most politely worded, "Read the API docs you g

Re: Java vararg functions called from Clojure

2008-12-08 Thread Randall R Schulz
On Monday 08 December 2008 10:53, Stephen C. Gilardi wrote: > On Dec 8, 2008, at 1:34 PM, Tom Emerson wrote: > > I just wanted to make sure I wasn't missing something. Perhaps > > something along the lines of > > > > (defn format-string > > [fmt & args] > > (String/format fmt (to-array args))) >

Re: Java vararg functions called from Clojure

2008-12-08 Thread Stephen C. Gilardi
On Dec 8, 2008, at 1:34 PM, Tom Emerson wrote: I just wanted to make sure I wasn't missing something. Perhaps something along the lines of (defn format-string [fmt & args] (String/format fmt (to-array args))) Hi Tom, Good call on it being a convenient function to have around. It's avail