On Tue, Jan 6, 2009 at 2:53 PM, [email protected] <[email protected]> wrote:
>
> On Jan 4, 6:05 pm, "Brian Doyle" <[email protected]> wrote:
>> Is there some place where all of these vars are defined? Is there some way
>> programatically I can find
>> them all? Thanks.
>
> I'm bored, and as an excuse to write some code I thought I'd try to
> come up with a solution.
>
> You can see it here: http://paste.lisp.org/display/73196
>
> It could be made better with some of the clojure.contrib.ns-utils
> stuff.
>
> I'm a n00b, use at your own risk :)
Not bad, though putting all the names into a single string before
doing the regex is a bit startling.
Here's another crack at it:
(doseq [[sym vr] (mapcat ns-publics (all-ns))
:when (re-find #"^\*" (str sym))]
(print-doc vr))
This highlights, though, how many are missing doc strings.
Thus: http://code.google.com/p/clojure/issues/detail?id=9
--Chouser
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---