Yeah, but it won't quite work if even the metadata has metadata.

user=> (def x (with-meta {:b 1} (with-meta {:a 1} {:x 1})))
#'user/x
user=>
x
{:b 1}

user=>
(meta x)
{:a 1}

user=>
(meta (meta x))
{:x 1}

The code above would leave out the metadata {:x 1} on {:a 1}, though
it should display the metadata for anything *inside* that map.

I think it could be adjusted with:

(fn [o]                     ->    (fn pm [o]

(orig-dispatch (meta o))    ->    (pm (meta o))

Of course, this is probably a pretty rare corner case.

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