Reputation: 14258
a trivial case for a constructor for deftype
(deftype Atom [v]
...)
and I want v to be wrapped in an atom so that
@(.v (Atom. 1)) => 1
is this possible?
Upvotes: 2
Views: 2097
Reputation: 4325
Same question was asked before, please see this: Add constructor to deftype created class
Upvotes: 0