Commits

timm...@heffer  committed 865dd0e

Fixed entryAt (return nil on non-existing key) (patch be Erik Söhnel)

  • Participants
  • Parent commits 7cdc771

Comments (0)

Files changed (1)

File src/de/kotka/lazymap/LazyMap.clj

 
 (defn- -entryAt
   [#^de.kotka.lazymap.LazyMap this k]
-  (de.kotka.lazymap.LazyMapEntry. k (-> this .theMap (get k))))
+  (when (.containsKey this k)
+    (de.kotka.lazymap.LazyMapEntry. k (-> this .theMap (get k)))))
 
 (defn- -valAt
   ([#^de.kotka.lazymap.LazyMap this k]