Open rgkirch opened 2 years ago
Interesting! Hmm... it seems like this should possible. Some brain storming should happen here. Off the top of my head I'm thinking "what if we had a wrapper for maps/structs/sets which held on to a set of keys that have been removed from the collection such that find
/contains?
returns nil
/false
?". I'm open to ideas here.
Yea, my first thought was to just make it a map before matching against it but then you'd have some unavoidable overhead for large structures. I do think it makes sense to support dissocing here so I'm in favor of your suggestion. I don't have a better idea than that.
https://clojure.org/reference/data_structures#StructMaps "you cannot dissociate a struct map from one of its base keys"
Even if meander doesn't change to make this code work, I want to at least record it here. It took me a while to figure out what was causing the exception.