Re: Invoking varargs Java methods

2012-01-15 Thread Norman Gray
Wolodja, hello. On 2012 Jan 11, at 16:34, Wolodja Wentland wrote: > I've stumbled over varargs in Clojure before and Alan Malloy came up with a > nice solution [0] which I expanded slightly: > > --- snip --- > (defmacro real-varargs [method required-count & array-type] > (let [args (repeatedly

Re: Invoking varargs Java methods

2012-01-11 Thread Wolodja Wentland
On Tue, Jan 10, 2012 at 22:46 +, Norman Gray wrote: > I've run into a situation which (I think) is the Clojure analogue of > , > and I'm not sure how to apply the solution there to Clojure (I'm a Clojure > beg

Re: Invoking varargs Java methods

2012-01-11 Thread Norman Gray
Aaron, hello. On 2012 Jan 11, at 03:05, Aaron Cohen wrote: >> Using the stackoverflow problem as an example, it seems that I can't do >> >> (.queryForObject jdbcTemplate rowMapper) > > I think your only problem here is that you're short an argument. If > you want to call a function with varar

Re: Invoking varargs Java methods

2012-01-10 Thread Aaron Cohen
On Tue, Jan 10, 2012 at 5:46 PM, Norman Gray wrote: > > Greetings. > > I've run into a situation which (I think) is the Clojure analogue of > , > and I'm not sure how to apply the solution there to Clojure (I'm

Invoking varargs Java methods

2012-01-10 Thread Norman Gray
Greetings. I've run into a situation which (I think) is the Clojure analogue of , and I'm not sure how to apply the solution there to Clojure (I'm a Clojure beginner, though familiar with Java and with variou