Skip to main content

conformer

macrov1.9

cljs.spec/conformer

(conformer [f] [f unf])
takes a predicate function with the semantics of conform i.e. it should return either a (possibly converted) value or :cljs.spec/invalid, and returns a spec that uses it as a predicate/conformer. Optionally takes a second fn that does unform of result of first

No examples yet. Be the first to add one!