George this is super cool! I can't wait to see this show up in swank-clojure
*ahem* Phil.
On Feb 2, 2011, at 12:03 PM, George Jahad wrote:
>
> show's a very cool function, but has a different purpose, (afaik).
>
> It displays the structure of an instance, but not it's contents. get-
> all-fields displays the contents. For example, if "a" is defined like
> so:
>
> (def a (partial conj [98]))
>
> get-all-fields will show me that the parameters to partial, "f" and
> "arg1", are conj and [98] respectively:
>
> (pprint (get-all-fields a))
> {:__meta {:line 2009},
> :arg1 [98],
> :const__0 #<Var@6b28215d: #<core$apply clojure.core$apply@39bb49e2>>,
> :f #<core$conj clojure.core$conj@1548d6e2>}
>
>
>
> On Feb 2, 7:36 am, Miki <[email protected]> wrote:
>> FYI: There is clojure.contrib.repl-utils/show
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> 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
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
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