Fork me on GitHub

is there a way to ask spec: "give me all embedded values in the nested map satisfying spec ::x?" (either in the std alpha or in 3rd party extensions). I'm thinking it wouldn't be too hard to do this with specter + spec but just wondered if something like it already exists...

Alex Miller (Clojure team)20:08:40

but it's just something like (defn deep-match [s x] (->> x (tree-seq coll? seq) (filter #(s/valid? s %))))


🙂 yea. cool, thx