`keys.associate { it to "DELETED" } + map.filter {...
# announcements
k
keys.associate { it to "DELETED" } + map.filter { (k, v) -> v == "SOFT_DELETED" }
w
This will also return the keys that is marked
NOT_DELETED
. I guess we can add a filter to remove those.
This will actually mark the
NOT_DELETED
keys as
DELETED
.
k
My bad, I'm sure you can figure out how to fix it htough 😛
w
Yeah. it can be fixed with a filter.
k
Oh right, I thought you wanted the first
"DELETED"
to just be something else.