Liking cljdoc? Tell your friends :D
All platforms.

defn-spec.core


assert*clj/s

(assert* kind fn-name spec x)
source

defn-specclj/smacro

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close