diff options
author | Konrad Hinsen <konrad.hinsen@laposte.net> | 2009-04-16 13:06:47 +0000 |
---|---|---|
committer | Konrad Hinsen <konrad.hinsen@laposte.net> | 2009-04-16 13:06:47 +0000 |
commit | e2db839a3ce9c5aa4cc0e287f560d6600b683f3a (patch) | |
tree | 45eceea01e7c5f9b843e2787b0b1aab5a793bc2b /src/clojure/contrib/types | |
parent | e7ee840f2df7b51a1f4eb8d9002f67fd6211a4d8 (diff) |
types: optional docstring and attribute map in deftype
Diffstat (limited to 'src/clojure/contrib/types')
-rw-r--r-- | src/clojure/contrib/types/examples.clj | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clojure/contrib/types/examples.clj b/src/clojure/contrib/types/examples.clj index fc9435fe..1ee27964 100644 --- a/src/clojure/contrib/types/examples.clj +++ b/src/clojure/contrib/types/examples.clj @@ -18,7 +18,8 @@ ; The most basic type definition. A more elaborate version could add ; a constructor that verifies that its argument is a map with integer values. -(deftype ::multiset multiset) +(deftype ::multiset multiset + "Multiset (demo implementation)") ; Some set operations generalized to multisets ; Note that the multiset constructor is nowhere called explicitly, as the |