You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a3c1212
Browse filesBrowse the repository at this point in the historyBrowse files
fix(map): walk entries, not keys-then-get, for NaN-keyed maps and sets
A key that is not = to itself (##NaN, or a list holding it) misses its
own lookup. Three walks did keys-then-get and lost the value:
reduce-kv's map fallback, update-keys and update-vals now reduce over
the map's entries.
The print realize pass had the same walk: get returned nil, the re-assoc
added a phantom `k nil` entry, so {(list ##NaN) 1} printed two entries.
It now walks entries, and a re-keyed map or re-realized set is rebuilt
from its realized entries, because dissoc/disj of a self-unequal key is a
no-op and the old dissoc+assoc also grew a phantom.
Adds nan-key-entry-walk to test/clj/suites/map_helpers_test.clj.
0 commit comments