treebitmap icon indicating copy to clipboard operation
treebitmap copied to clipboard

Provide mutable versions of exact_match and longest_match

Open heroin-moose opened this issue 7 years ago • 6 comments

If a tree node holds some mutable structure (like HashMap) it's desirable to modify it inline without removing, modifying and inserting it back.

heroin-moose avatar Jun 19 '18 12:06 heroin-moose

I needed this as well for longest_match and came up with a very rudimentary version in https://github.com/zesplot/treebitmap/tree/longest_match_mut

It lacks tests and documentation, as I'm not sure whether this (i.e., repeating the immutable version of the function) is the desired way of doing it. @hroi , if you think it is, I can add tests+docs and create a pull request.

DRiKE avatar Aug 30 '18 09:08 DRiKE

Yeah, I did the same xD The problem is -- the author seems to be dead. We either need to fork this project or to call a necromancer.

heroin-moose avatar Aug 30 '18 12:08 heroin-moose

Thanks for the mutable version of longest_match_mut(). I needed this too.

pusateri avatar Oct 15 '18 12:10 pusateri

My thanks to whoever called the necromancer. I will try to get my shit together and stop neglecting this repo. If someone wants to help maintain it, please let me know!

hroi avatar May 22 '19 15:05 hroi

Closed the wrong issue.

hroi avatar May 22 '19 20:05 hroi

Yay, @hroi has been revived ^_^

heroin-moose avatar May 25 '19 15:05 heroin-moose