Would anyone be interested in this? It takes either a string or a symbol, and examines all namespaces for identifiers that match the given input.
(defn substring? [str1 str2] (let [c1 (count str1) c2 (count str2)] (and (<= c1 c2) (or (= str1 (subs str2 0 c1)) (substring? str1 (subs str2 1 c2)))))) (defn apropos [kw] (let [kwstr (str kw)] (apply concat (map (fn [ns] (filter #(substring? kwstr (str %)) (keys (ns-publics ns)))) (all-ns))))) Not sure what files in contrib to put these in -- and whether substring? will be generally useful, and thus should be exported, or not. Thanks, -- Michel Salim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---