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) ; 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 "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.