eqnode

package
v0.0.0-...-60ed499 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2023 License: CC0-1.0 Imports: 1 Imported by: 7

Documentation

Index

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.

func Traverse

func Traverse[T comparable](
	root *dryad.NodeOfEq[T],
	f func(*dryad.NodeOfEq[T]),
)

Traverse the tree with the given root node in a pre-order fashion applying the given function to each node.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL