Skip to content

Add link{L,R} for Set and Map #1141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

meooow25
Copy link
Contributor

@meooow25 meooow25 commented May 4, 2025

linkL checks whether the left tree is heavier than the right tree, but unlike link it skips checking the other way around. linkR checks the opposite.

These are used where we know for certain that we only need to rebalance in one direction. link also delegates to these since the direction never changes during linking. L and R versions for merge/link2 are added for the same reason.

Closes #307.

linkL checks whether the left tree is heavier than the right tree, but
unlike link it skips checking the other way around. linkR checks the
opposite.

These are used where we know for certain that we only need to rebalance
in one direction. link also delegates to these since the direction never
changes during linking. L and R versions for merge/link2 are added for
the same reason.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add left and right link variants
1 participant