This website requires JavaScript.
Explore
Help
Register
Sign In
humza
/
sml-projects
Watch
1
Star
0
Fork
0
You've already forked sml-projects
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
c856f49a6cf42091041301ab543451751d243e5d
sml-projects
/
test
/
persistent-vector-tests.sml
Humza Shahid
c856f49a6c
amend merge function from persistent-vector.sml. If we reach the same depth and find that there is no space, then climb (using the stack) up by one depth, raise the depth of the smaller node by 1, and merge there. This helps ensure balance. Before, we broke a LEAF into two LEAF objects if we wanted to merge and found that there was no room, but that led to balancing problems, which are addressed by this change.
2026-02-05 23:54:31 +00:00
16 KiB
Raw
Blame
History
View Raw
Reference in New Issue
View Git Blame
Copy Permalink