diff --git a/project.clj b/project.clj index e9ddbc8..14bd5d1 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject yogsototh/kibit "0.1.5" +(defproject yogsototh/kibit "0.1.6-SNAPSHOT" :description "There's a function for that!" :url "https://github.com/yogsototh/kibit" :license {:name "Eclipse Public License - v 1.0" diff --git a/src/kibit/rules/misc.clj b/src/kibit/rules/misc.clj index 72a80c8..86b73f1 100644 --- a/src/kibit/rules/misc.clj +++ b/src/kibit/rules/misc.clj @@ -23,6 +23,7 @@ [(apply concat (map ?x . ?y)) (mapcat ?x . ?y)] ;; filter + [(vec (filter ?pred ?coll)) (filterv ?pred ?coll)] [(filter (complement ?pred) ?coll) (remove ?pred ?coll)] [(filter seq ?coll) (remove empty? ?coll)] [(filter (fn* [?x] (not (?pred ?x))) ?coll) (remove ?pred ?coll)] diff --git a/test/kibit/test/misc.clj b/test/kibit/test/misc.clj index 3c75a7c..c594720 100644 --- a/test/kibit/test/misc.clj +++ b/test/kibit/test/misc.clj @@ -23,6 +23,7 @@ '(remove pred coll) '(filter (complement pred) coll) '(remove pred coll) '(filter #(not (pred %)) coll) '(remove pred coll) '(filter (fn [x] (not (pred x))) coll) + '(filterv pred coll) '(vec (filter pred coll)) '(ffirst coll) '(first (first coll)) '(fnext coll) '(first (next coll)) '(nnext coll) '(next (next coll))