Commits

w01fe committed a709f9f

Fix bug where .entryAt returns entry when none present

Signed-off-by: mb@kotka.de

Comments (0)

Files changed (1)

src/main/clojure/lazymap/core.clj

   (without     [this k] (create-lazy-map (dissoc base k) metadata))
   ; Associative
   (containsKey [this k] (contains? base k))
-  (entryAt     [this k] (LazyMapEntry. k (base k)))
+  (entryAt     [this k] (when-let [v (base k)] (LazyMapEntry. k v)))
   ; IPersistentCollection
   (count       [this]   (count base))
   (cons