Commits

Anonymous committed 865dd0e

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

Comments (0)

Files changed (1)

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]