Filters elements of coll by a regular expression. The String
representation (with str) of each element is tested with re-find.
(defn grep "Filters elements of coll by a regular expression. The String representation (with str) of each element is tested with re-find." [re coll] (filter (fn [x] (re-find re (str x))) coll))
Comments top
No comments for grep. Log in to add a comment.