Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This somewhat superseeds #17, as this adds more powerful, generic traversals, which makes the need for too many variations on
map
less necessary, since anyone can quite easily make their own.In fact these are so powerful, that I refactored the whole library to sit on top of these. I think this has the following benefits:
On the negative side there is potentially some small overhead as there is a bit extra information being ferried around that isn't strictly necessary for all the functions involved. My hope is that a) this is fairly negligible and b) that the aforementioned higher probability of JIT will pay for it in practice.
However, in a 1-to-1 microbenchmark, it's likely some methods would slighly regress. However, they may perform better in real world applications.