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
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 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! Defining delete(::Elements) methods for tuples and vectors should be enough.
Hi, the same optics I'm using for modification
do not work with deletion
Is this supposed to work? Thanks! :)
The text was updated successfully, but these errors were encountered: