Tutorial: Clojure applications in Eclipse with Counterclockwise and Maven

2012-03-22 Thread Nicolas Duchenne
Hi Everyone, I wrote an extensive tutorial in two parts about developing Clojure applications with Maven and Counterclockwise in Eclipse: Clojure in Eclipse, Part 1: Maven: Develop, test and deploy a Clojure app in Ecl

Re: Question about this little method I wrote

2012-02-29 Thread Nicolas Duchenne
Hi Mike, If I understood your aim correctly, and if you accept changing the output of (combinations [[1 2]]) to ((1) (2)) instead of (1 2), which I think makes more sense,then the reduce function does the job in one line for you. (defn combinations [items] (reduce #(for [l % i %2] (conj l i)) [