Since 'supdate' has already established the idea of "false" as a magical value (for key dissoc) it seem like an obvious extension to accept "false" as a magic value for map keys as well- In that case, the obvious operation is to treat it as a wildcard key value, mapping updates against all vals in the map, which is a frequently needed ability:
Since 'supdate' has already established the idea of "false" as a magical value (for key dissoc) it seem like an obvious extension to accept "false" as a magic value for map keys as well- In that case, the obvious operation is to treat it as a wildcard key value, mapping updates against all vals in the map, which is a frequently needed ability:
(supdate {:a 5 :b 10} {false inc}) => {:a 6 :b 11}
Also: