Navigation Menu

Skip to content

Commit

Permalink
deftype failed to implement Iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Apr 10, 2012
1 parent 68ec7ed commit 4e64fa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/clj/clojure/core_deftype.clj
Expand Up @@ -205,6 +205,7 @@
(clojure.lang.MapEntry. k# v#))))
`(seq [this#] (seq (concat [~@(map #(list `new `clojure.lang.MapEntry (keyword %) %) base-fields)]
~'__extmap)))
`(iterator [this#] (clojure.lang.SeqIterator. (.seq this#)))
`(assoc [this# k# ~gs]
(condp identical? k#
~@(mapcat (fn [fld]
Expand Down

0 comments on commit 4e64fa2

Please sign in to comment.