ClojureDocs

Nav

Namespaces

Clojure/Conj 2026 — Charlotte, NC — Sept 30 - Oct 2 Learn More & Get Tickets →

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.