From 5a040c35df42a84d34d0c58cc0621f44562f00f3 Mon Sep 17 00:00:00 2001 From: gered Date: Tue, 25 Mar 2014 11:20:36 -0400 Subject: [PATCH] change the way the optional args to find-vars are specified --- src/clj_metasearch/core.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj_metasearch/core.clj b/src/clj_metasearch/core.clj index 9312e9e..3208abe 100644 --- a/src/clj_metasearch/core.clj +++ b/src/clj_metasearch/core.clj @@ -73,7 +73,7 @@ A sequence of maps will be returned, where each map holds information about a var that was found. The :ns key is the namespace which the var was found in, and :var is the Clojure var itself (which you can get the value of by, e.g. using var-get)" - [meta-pred & [namespace-pred require-all-namespaces?]] + [meta-pred & {:keys [namespace-pred require-all-namespaces?]}] (->> (find-namespaces namespace-pred) (map #(find-vars-in % meta-pred require-all-namespaces?)) (apply concat)))