Open simonmandlik opened 3 hours ago
Indeed, delete(x, @optic _["a"][∗])
could remove all elements of x["a"]
so that x["a"]
exists but is an empty collection. And delete(x, @optic _["a"][∗][∗])
would keep all `x["a"][1]
, x["a"][2]
, ... leaving each of them would be empty.
I don't see any issues with following this semantic, I guess it just never came up and you have quite a rare usecase :) Feel free to make an implementation PR!
Hi, the same optics I'm using for modification
do not work with deletion
Is this supposed to work? Thanks! :)