• (deftype- type-tag constructor-name & optional)
Same as deftype but the constructor is private.

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 clojure/contrib/types.clj:88 top

(defmacro deftype-
  "Same as deftype but the constructor is private."
  [type-tag constructor-name & optional]
  `(deftype ~type-tag
     ~(vary-meta constructor-name assoc :private true)
     ~@optional))
Vars in clojure.contrib.types/deftype-: assoc defmacro vary-meta concat deftype list seq
Used in 0 other vars

Comments top

No comments for deftype-. Log in to add a comment.