effect-tree - v1.0.36
    Preparing search index...

    Interface ZipperLevel<A>

    Everything required to rebuild a level of the tree and all below it. To recreate the level we add the focus node between the lefts and the rights then add this forest to the parent value to get a tree.

    interface ZipperLevel<A> {
        lefts: Tree<A>[];
        parent: Option<A>;
        rights: Tree<A>[];
    }

    Type Parameters

    • A

      The underlying type of the tree.

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    lefts: Tree<A>[]

    All children of the parent that are to the left of the focus node.

    parent: Option<A>

    Parent node value of the focus node at the level we are encoding. All nodes have a parent except the root node.

    rights: Tree<A>[]

    All children of the parent that are to the right of the focus node.