Skip to main content

cat

macrov1.9

cljs.spec/cat

(cat [& key-pred-forms])
Takes key+pred pairs, e.g. (s/cat :e even? :o odd?) Returns a regex op that matches (all) values in sequence, returning a map containing the keys of each pred and the corresponding value.

No examples yet. Be the first to add one!