Re: [ANN] ClojuTRE 2015 conference in Tampere, Finland

2015-09-17 Thread jarppe
Videos now available: https://www.youtube.com/playlist?list=PLetHPRQvX4a_tA9hGP935-OyLOYaRKpnj -- -jarppe On Monday, June 22, 2015 at 3:24:23 PM UTC+3, Mikko Heikkilä wrote: > > Dear fellow Clojurians, > > ClojuTRE 2015 will take place Friday, September 11th 2015, in Tampere

Using function that returns unique keys in map literals causes an

2012-09-12 Thread jarppe
r=> *(let [id1 (generate-id) id2 (generate-id)] {id1 "foo" id2 "bar"})* {3 "foo", 4 "bar"} Is this a bug, or am I doing something wrong here? I'm using Clojure 1.4. -- -jarppe -- You received this message because you are subscribed to

Map literal with keys generated by function cause "Duplicate key" exception

2012-09-12 Thread jarppe
plicate key: (generate-id) clojure.lang.PersistentArrayMap.createWithCheck (PersistentArrayMap.java:70) This works as expected. (let [id1 (generate-id) id2 (generate-id)] {id1 "foo" id2 "bar}) Should I be able to call generate-id in map literal? -- -jarppe -- You received th

Why I get IllegalArgumentException: No matching ctor found

2012-12-16 Thread jarppe
is defined like this: *(*defn make-greeter [] *(*fn [user-name] *(*str "Hello, " user-name*)**)**)* I can use it like this: *(*defgreeter hello*)* *(*hello "jarppe"*)* How ever, if I change make-greeter to this I get IllegalArgumentException: *(*defn make-greeter [

Re: Why I get IllegalArgumentException: No matching ctor found

2012-12-16 Thread jarppe
I think you are right, when ever the function returns a closure I get the exception. I think it should work with closures anyhow. -- -jarppe On Sunday, December 16, 2012 7:49:30 PM UTC+2, juan.facorro wrote: > > I think it has to do with the closure in the *fn *used when generating

Re: Why I get IllegalArgumentException: No matching ctor found

2012-12-17 Thread jarppe
`(def ~greeter-name ~greeter))) > > Might be a clue. :) > > Strange. That is definitely a clue, but for what? :) -- -jarppe -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegrou