TreeNodeUnaryOperatorWithParent<K> typedef
Function that transforms a tree node with parent context.
Similar to TreeNodeUnaryOperator but provides access to the parent node. Useful for operations that need parent-child relationship information.
Implementation
typedef TreeNodeUnaryOperatorWithParent<K> = TreeNode<K>? Function(
TreeNode<K>? parent, TreeNode<K> node);