Groundwork for this has been done.
CLJS-2013: Add MapEntry typeClosedPreview adds the MapEntry type, but indicates "PAMs and PHMs don't emit them when you seq or iterate over them yet."CLJS-2068: RedNode, BlackNode and MapEntry should be IComparableClosedPreview fixes an issue with MapEntryCLJS-2001: Add map-entry? predicateClosedPreview adds a map-entry? predicate
MapEntry
seq
iterate
map-entry?
So this ticket entails updating the PHM and PAM implementations so that, for example, (map-entry? (first {:a 1})) evaluates to true.
(map-entry? (first {:a 1}))
true
Note: One additional bit of groundwork that should be done prior to this ticket is CLJS-2460.
Groundwork for this has been done.
CLJS-2013: Add MapEntry typeClosedPreview adds the
MapEntry
type, but indicates "PAMs and PHMs don't emit them when youseq
oriterate
over them yet."CLJS-2068: RedNode, BlackNode and MapEntry should be IComparableClosedPreview fixes an issue with
MapEntry
CLJS-2001: Add map-entry? predicateClosedPreview adds a
map-entry?
predicateSo this ticket entails updating the PHM and PAM implementations so that, for example,
(map-entry? (first {:a 1}))
evaluates totrue
.Note: One additional bit of groundwork that should be done prior to this ticket is CLJS-2460.