Hi Tom

On Mon, Mar 2, 2009 at 3:13 PM, Tom Ayerst <tom.aye...@gmail.com> wrote:
> Hi David,
>
> I think part of the problem is that you missed the name space from the data
> you retrived with find-doc.  meta isn't in the user namespace so you need to
> specify it.

I don't think David is having trouble finding the documentation for
meta.  He's complaining that the output of (doc meta) does not tell
you that you need to use (meta (var meta)) instead of (meta 'meta) or
(meta meta).

By the way, David:

The following URLs show that ^#'meta is equivalent to (meta (var meta)):

http://clojure.org/special_forms#var
http://clojure.org/metadata
http://clojure.org/reader

See also macroexpand-1:

user=> (macroexpand-1 '#'meta)
(var meta)
user=> (macroexpand-1 '^#'meta)
(clojure.core/meta (var meta))

> user=> (find-doc "metadata")
> ...
> -------------------------
> clojure.core/meta
> ([obj])
>   Returns the metadata of obj, returns nil if there is no metadata.
> -------------------------
> ...
> user=> (doc clojure.core/meta)
> -------------------------
> clojure.core/meta
> ([obj])
>   Returns the metadata of obj, returns nil if there is no metadata.
> nil
> user=>

The above is not necessary:

user=> (doc meta)
-------------------------
clojure.core/meta
([obj])
  Returns the metadata of obj, returns nil if there is no metadata.
nil
user=>

-- 
Michael Wood <esiot...@gmail.com>

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