Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tree ¶
type Tree[T any] struct { // contains filtered or unexported fields }
func CopyTree ¶
func CopyTree[T TreeProvider[T]](root T) Tree[T]
func NewTree ¶
func NewTree[T any](node T, children []TreeProvider[T]) Tree[T]
func (*Tree[T]) SetChildren ¶
func (t *Tree[T]) SetChildren(children []TreeProvider[T])
type TreeProvider ¶
type TreeProvider[T any] interface { Node() T Children() iter.Seq[TreeProvider[T]] }
Click to show internal directories.
Click to hide internal directories.