You must have something messed up:

In line 1 (meta ^:k []) does not return {:tag :k}  it returns nil and
I am using Clojure 1.2.

Both lines 1 and 2, shouldn't return meta, because 'meta' only takes
an object as an input argument.
And only if the object already has metadata will metadata will return.

=> (def o (with-meta ['mydatastructure] {:k []}))
=> (meta o)
{:k []}


On Jan 9, 2:52 pm, mdzaebel <mdzae...@web.de> wrote:
> Hi,
>
> (meta ^:k [])  -->  {:tag :k}
> (meta ^:k 'o)  -->  nil
> (meta(with-meta 'o {:tag :k}))  -->  {:tag :v}
>
> Why doesn't the second line return the metadata?
>
> Thanks, Marc
>
> Using Clj 1.2

-- 
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

Reply via email to