1. Meikel Brandmeyer
  2. lazymap

Commits

w01fe  committed a709f9f

Fix bug where .entryAt returns entry when none present

Signed-off-by: mb@kotka.de

  • Participants
  • Parent commits de938e2
  • Branches default

Comments (0)

Files changed (1)

File src/main/clojure/lazymap/core.clj

View file
   (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