aboutsummaryrefslogtreecommitdiff
path: root/core/container/rbtree
Commit message (Collapse)AuthorAgeFilesLines
* rbtree: fix pointer usagesLaytan Laats2026-01-111-4/+4
|
* Further overhaul of package line comments.Jeroen van Rijn2025-10-092-2/+1
|
* More package linesJeroen van Rijn2025-10-091-1/+1
|
* Package lines for core:container.Jeroen van Rijn2025-10-092-1/+2
|
* Fix rbtree.find_or_insertSam Mercer2025-08-291-3/+4
| | | | | Update the existing node's value if the key is already present and align documentation with behavior.
* Fix alignment.Jeroen van Rijn2024-06-271-1/+1
|
* Loosen constraint on the Key type in rb & avl treedestroycomputers2024-06-181-1/+1
| | | | | | | The current constraint on the `init_ordered' function accepts only numeric types. While one still can init a non-numerically-keyed tree by passing a comparator explicitly, the reason to disallow non-numeric ordered types is nowhere to be found.
* Address concerns.Jeroen van Rijn2024-05-241-4/+5
|
* Fix package line.Jeroen van Rijn2024-05-241-1/+1
|
* Add `core:container/rbtree`Jeroen van Rijn2024-05-231-0/+567
Add a red-black tree with configurable $Key and $Value. Also includes tests that verify it maintains RB invariants, doesn't leak. Originally based on the CC0 implementation from literateprograms.org. But reworked to the same API used by @Yawning's excellent `core:container/avl` for ease of use.