On Jan 8, 5:04 pm, Chouser <chou...@gmail.com> wrote: > On Tue, Jan 6, 2009 at 2:53 PM, rzeze...@gmail.com <rzeze...@gmail.com> wrote: > > > On Jan 4, 6:05 pm, "Brian Doyle" <brianpdo...@gmail.com> 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
The use of a list comprehension and mapcat is much more succinct then my mess :) . I, also, didn't like my big-string/regex; it is indeed ugly. Thanks for the comments, Chris. They are always helpful. -Ryan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---