Re: Question about equality in HashMaps

2015-09-11 Thread Erlis Vidal
Ohh I was fooled by the editor. http://www.tryclj.com/ shows the right values. Thanks for catching that up for me. instaREPL definitely has a bug there. Time to install light table... Thanks guys!!! On Fri, Sep 11, 2015 at 3:45 PM, Michael Blume wrote: > I wonder why instaREPL prints a as {"a

Re: Question about equality in HashMaps

2015-09-11 Thread Michael Blume
I wonder why instaREPL prints a as {"a" 3, "r" 1, "u" 1} On Fri, Sep 11, 2015 at 3:42 PM Alex Miller wrote: > a uses characters (\a \b \c) > b uses strings ("a" "b" "c") > > Those are not equal... > > Try: > (def b {\a 3 \r 1 \u 1}) > > > On Friday, September 11, 2015 at 5:37:32 PM UTC-5, Erlis

Re: Question about equality in HashMaps

2015-09-11 Thread Alex Miller
a uses characters (\a \b \c) b uses strings ("a" "b" "c") Those are not equal... Try: (def b {\a 3 \r 1 \u 1}) On Friday, September 11, 2015 at 5:37:32 PM UTC-5, Erlis Vidal wrote: > > (def a (apply merge-with + (map #(hash-map %1 1) "aaaur"))) > (def b {"a" 3, "r" 1, "u" 1}) > > (= a b) ;