clojure.core/defn¶
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.
Examples¶
See also¶
- clojure.core/def (4)
- clojure.core/defn- (1)
- clojure.core/defmacro (2)
- clojure.core/fn (3)
- clojure.core/declare (0)
Content from the matching ClojureDocs page, with authors credited on each contribution.