(coercer spec)
(coercer spec {:keys [f] :as opts})
Returns a coercer for spec
.
spec
can be everything which is accepted by s/valid?
or s/conform
.
opts can be:
:kind
in s/every
, s/every-kv
,
s/coll-of
or s/map-of
. Defaults to falseReturns a coercer for `spec`. `spec` can be everything which is accepted by `s/valid?` or `s/conform`. opts can be: * :coerce-coll-kinds - whether collections should be converted into specified types as per `:kind` in `s/every`, `s/every-kv`, `s/coll-of` or `s/map-of`. Defaults to false
(coll-of-coercer
{:keys [spec] {:keys [kind min-count]} :opts}
{:keys [coerce-coll-types] :or {coerce-coll-types false} :as opts})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close