Skip to content

Instantly share code, notes, and snippets.

@yayitswei
Created September 19, 2013 07:11
Show Gist options
  • Save yayitswei/6619993 to your computer and use it in GitHub Desktop.
Save yayitswei/6619993 to your computer and use it in GitHub Desktop.
user=> (doc defn)
-------------------------
clojure.core/defn
([name doc-string? attr-map? [params*] prepost-map? body] [name doc-string? attr-map? ([params*] prepost-map? body) + attr-map?])
Macro
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.
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment