Skip to main content

merge

macrov1.9

cljs.spec/merge

(merge [& pred-forms])
Takes map-validating specs (e.g. 'keys' specs) and returns a spec that returns a conformed map satisfying all of the specs. Successive conformed values propagate through rest of predicates. Unlike 'and', merge can generate maps satisfying the union of the predicates.

No examples yet. Be the first to add one!