Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/lazy_map/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@
(count [this] 2)
(empty [this] false)
(equiv [this o]
(.equiv
[key_ (force val_)]
o))
(and (instance? clojure.lang.IPersistentCollection o)
(.equiv [key_ (force val_)] o)))

clojure.lang.IPersistentStack
(peek [this] (force val_))
Expand Down Expand Up @@ -249,9 +248,9 @@
(cons [this o]
(LazyMap. (.cons (or contents {}) o)))
(equiv [this o]
(.equiv
^clojure.lang.IPersistentCollection
(into {} this) o))
(and (instance? clojure.lang.IPersistentCollection o)
(.equiv ^clojure.lang.IPersistentCollection
(into {} this) o)))

clojure.lang.IPersistentMap
(assoc [this key val]
Expand Down