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
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
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
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 [
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
`(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