(defn-spec name doc-string? attr-map? [params*] prepost-map? body)
(defn-spec name doc-string? attr-map? ([params*] prepost-map? body) + attr-map?)
Exact same parameters as defn
. You may optionally include ::s/args
and/or ::s/ret
in your function's attr-map to have the args and/or return
value of your function checked with s/assert
.
Setting s/*compile-asserts*
to false
will result in a regular function
definition.
Exact same parameters as `defn`. You may optionally include `::s/args` and/or `::s/ret` in your function's attr-map to have the args and/or return value of your function checked with `s/assert`. Setting `s/*compile-asserts*` to `false` will result in a regular function definition.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close