@ac-essentials/misc-util
    Preparing search index...

    Interface IBinaryTree<T, N, C>

    Interface representing a binary tree data type.

    A binary tree is a hierarchical data structure in which each node has at most two children, referred to as the left child and the right child. The topmost node is called the root, and nodes without children are called leaves.

    interface IBinaryTree<
        T,
        N extends IBinaryTreeNode<T, N, C>,
        C extends ITreeNodeChildren<T, N, C>,
    > {
        children: C;
        setValue(value: T): Promisable<void>;
        value(): Promisable<undefined | T>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    Methods

    Properties

    children: C

    Methods