Namespaces

 
0.3.2 permalink Arrow_down_16x16

defcontract

fogus.me.trammel

  • (defcontract name docstring & forms)
Convenience macro for defining a named contract. Equivalent to `(def fc (contract ...))`

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source fogus/me/trammel.clj:155 top

(defmacro defcontract
  "Convenience macro for defining a named contract.  Equivalent to `(def fc (contract ...))`"
  [name docstring & forms]
  `(def ~name
     (contract ~(symbol (str name "-impl")) ~docstring ~@forms)))
Vars in fogus.me.trammel/defcontract: defmacro name concat list seq str symbol
Used in 0 other vars

Comments top

No comments for defcontract. Log in to add a comment.