Clojure: "=" compares values ββin collections, why can't it compare two lists in this case?
See this example:
Clojure 1.4.0 user=> (def a 1) #'user/a user=> (def b 2) #'user/b user=> (= [1 2] [ab]) true user=> (= '(1 2) '(1 2)) true user=> (= '(1 2) '(ab)) false
Why does the last case not work, and how to make the last case work without having to convert the list to a vector?
Thanks!
+6
user972946
source share