Hi Clojure experts,
I am newbie to Clojure and was exploring metadata.
The following didn't work:
user=> (def v 10)
#'user/v
user=> (with-meta v {:info 1})
java.lang.IncompatibleClassChangeError
java.lang.IncompatibleClassChangeError
at clojure.with_meta__47.invoke(boot.clj:159)
at user.eval__2228.invoke(Unknown Source)
at clojure.lang.Compiler.eval(Compiler.java:3847)
at clojure.lang.Repl.main(Repl.java:75)
While the following worked:
user=> (def vo [1 2 3])
#'user/vo
user=> (with-meta vo {:info 1})
[1 2 3]
user=> (meta (with-meta vo {:info 1}))
{:info 1}
I was wondering why the first scenario didn't work but couldn't find
details on this. Can someone please explain?
Regards,
Apurva
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---