ClojureDocs

Nav

Namespaces

defn

clojure.core

Available since 1.0 (source)
  • (defn name doc-string? attr-map? [params*] prepost-map? body)
  • (defn name doc-string? attr-map? ([params*] prepost-map? body) + attr-map?)
Same as (def name (fn [params* ] exprs*)) or (def
  name (fn ([params* ] exprs*)+)) with any doc-string or attrs added
  to the var metadata. prepost-map defines a map with optional keys
  :pre and :post that contain collections of pre or post conditions.