effect-tree
    Preparing search index...

    Variable nthChildConst

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

    Return the Nth child tree of a tree or Option.none() if index is out-of-bounds or if given tree is a leaf.

    Negative indexes are handled as offsets from the end of the forest with -1 being the last child, -2 the child before it, and so on.

    Type Declaration

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

        • A

        Parameters

        Returns Option<Tree<A>>

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

        • A

        Parameters

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

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

    Underlying tree type.

    index of requested node in parent forest. Negative indexes are accepted.

    Node will be taken from this tree's forest.

    An optional tree.