Commits

Meikel Brandmeyer committed 069c3cd

Fix lazy-assoc* to use protocol

  • Participants
  • Parent commits 414fd04
  • Branches new

Comments (0)

Files changed (1)

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

   instead of expanding into a delay of val."
   [m & kvs]
   (assert (even? (count kvs)))
-  (reduce (fn [m [k v]] (.lazyAssoc m k v)) m (partition 2 kvs)))
+  (reduce (fn [m [k v]] (delay-assoc m k v)) m (partition 2 kvs)))
 
 (defmacro lazy-assoc
   "lazy-assoc associates new values to the given keys in the given lazy map.