Skip to content

JumpMasterJJ/baby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

baby

baby is a third-party library that uses moonbit to rewrite the ordered set based on the binary balanced tree, mainly referring to fpottier/baby

Currently, the height balance strategy and weight balance strategy are supported by default, and users are allowed to customize the balance strategy.

Installation and Usage

To use this library, you should add a dependency on it by running the command line with moon:

moon add jumpping/baby

Advanced Uasge

If you need a custom balancing strategy, please implement the function: scheme[E : Compare]() -> @base.Joinable[Tree[E], E].

And run pre-build to generate set/map operations based on your balancing strategy. For more details, please refer to implementations of src/height and src/weight.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages