feat: add structural mutation helpers (insert/move/replace/sort children) (#34) (#41)

This commit is contained in:
2026-06-07 22:35:04 +02:00
committed by GitHub
parent 1f60b854de
commit 06eae4841e
4 changed files with 270 additions and 2 deletions

View File

@@ -6,6 +6,10 @@ All notable changes to this project are documented here. The format is based on
## [Unreleased]
### Added
- Structural mutation helpers on `TreeNode`: `insertChild`, `removeChildAt`, `replaceChild`,
`moveChild`, `addChildren`, and `sortChildren`.
### Changed
- Rewrote the README for clarity: one consistent example tree, task-oriented sections
(building, traversal, navigation, functional, utilities, mutating), per-module usage, and a