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
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
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) ;
(def a (apply merge-with + (map #(hash-map %1 1) "aaaur")))
(def b {"a" 3, "r" 1, "u" 1})
(= a b) ; why false
(.equals a b)
(type a)
(type b)
(identity a)
(identity b)
from http://web.clojurerepl.com/
--
You received this message because you are subscribed to the Google
Groups