Documentation ¶
Index ¶
- func ContentSet[T comparable](root *dryad.NodeOfEq[T]) dryad.Set[T]
- func CopyTree[T comparable](root *dryad.NodeOfEq[T]) *dryad.NodeOfEq[T]
- func LeafSet[T comparable](root *dryad.NodeOfEq[T]) dryad.Set[T]
- func LeafSlice[T comparable](root *dryad.NodeOfEq[T]) []T
- func Leaves[T comparable](root *dryad.NodeOfEq[T]) []*dryad.NodeOfEq[T]
- func Shed[T comparable](root *dryad.NodeOfEq[T])
- func Traverse[T comparable](root *dryad.NodeOfEq[T], f func(*dryad.NodeOfEq[T]))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentSet ¶
func ContentSet[T comparable](root *dryad.NodeOfEq[T]) dryad.Set[T]
ContentSet contains the contents of the nodes for the tree with the given root node.
func CopyTree ¶
func CopyTree[T comparable](root *dryad.NodeOfEq[T]) *dryad.NodeOfEq[T]
CopyTree creates a copy of the tree with the given root node.
func LeafSet ¶
func LeafSet[T comparable](root *dryad.NodeOfEq[T]) dryad.Set[T]
LeafSet contains the contents of the leaf nodes for the tree with the given root node.
func LeafSlice ¶
func LeafSlice[T comparable](root *dryad.NodeOfEq[T]) []T
LeafSlice contains the contents of the leaf nodes for the tree with the given root node.
func Leaves ¶
func Leaves[T comparable](root *dryad.NodeOfEq[T]) []*dryad.NodeOfEq[T]
Leaves of the tree with the given root node.
func Shed ¶
func Shed[T comparable](root *dryad.NodeOfEq[T])
Shed the leaf nodes from the tree with the given root node.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.