Source

lazymap / src / main / clojure / de / kotka / lazymap.clj

Diff from to

src/main/clojure/de/kotka/lazymap.clj

 
 (defmethod print-method LazyMapEntry
   [this #^java.io.Writer w]
-  (.write w (.toString this)))
+  (.write w (str this)))
 
 (defn create-lazy-map-seq
   ([inner-seq]
   (assoc       [this k v] (create-lazy-map (assoc base k (delay v)) metadata))
   (assocEx
     [this k v]
-    (when (.containsKey base k)
+    (when (contains? base k)
       (throw (Exception. (str "Key already present in map: " k))))
     (.assoc this k v))
   (without     [this k] (create-lazy-map (dissoc base k) metadata))