effect-tree
    Preparing search index...

    Variable removeNthChildConst

    removeNthChild: {
        flip: (n: number) => <A>(self: Tree<A>) => Tree<A>;
        <A>(n: number, self: Tree<A>): Tree<A>;
        <A>(self: Tree<A>): (n: number) => Tree<A>;
    } = ...

    Removes the Nth direct child of the given tree. If the tree is a branch with a single child then a Leaf is returned. If the given index is out-of-bounds, or the given tree is a leaf, it is returned unchanged.

    Type Declaration

      • <A>(n: number, self: Tree<A>): Tree<A>
      • Type Parameters

        • A

        Parameters

        Returns Tree<A>

      • <A>(self: Tree<A>): (n: number) => Tree<A>
      • Type Parameters

        • A

        Parameters

        Returns (n: number) => Tree<A>

    • flip: (n: number) => <A>(self: Tree<A>) => Tree<A>

    Tree underlying type.

    Index in root node forest of node that will be removed.

    The tree from which a node will be removed.

    The tree with on less node.