On 10.11.2013 14:03, Dave Tenny wrote:
> I don't understand why these things aren't equal.
> 
>     user=> (= (list java.lang.String) (list (class "abc")))
>     true
>     user=> (= '(java.lang.String) (list (class "abc")))
>     false
>     user=> (type '(java.lang.String))
>     clojure.lang.PersistentList
>     user=> (type (list java.lang.String))
>     clojure.lang.PersistentList
> 
>     user=> (list java.lang.String)
>     (java.lang.String)
>     user=> '(java.lang.String)
>     (java.lang.String)
>     user=> (= *1 *2)
>     false
> 
> 
> What am I missing?

user=> (type (first (list java.lang.String)))
java.lang.Class
user=> (type (first '(java.lang.String)))
clojure.lang.Symbol

-- 
Timo

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to