Leiningen 1.3 question

2010-10-21 Thread hsarvell
I'm trying to compile my project with Leiningen 1.3.1, the compile fails but that is another story. My main problem right now is that the lib folder disappears. I'd like to be able to do lein jar (or try) without it disappearing. My project.clj looks like this: (defproject project 0.1

Recursive get?

2010-07-11 Thread hsarvell
I seem to suck at searching for information and the api because a recursive get should be there already but I can't find it, ie the following has probably already been implemented as a macro what will be prettier to call but what is it called?: (defn get2 [el lst] (if (= 1 (count lst))

Converting list to Map

2010-06-27 Thread hsarvell
I tried to find something in core / on Google to do this but didn't, here is what I have anyway: (defn lst-to-map [lst] (reduce (fn [hsh chunk] (assoc hsh (first chunk) (last chunk))) (hash-map) (partition 2 lst))) Is there an easier/shorter way? -- You received