effect-tree
    Preparing search index...

    Variable treeToOrdinalConst

    treeToOrdinal: (self: Branch<number>) => [ordinal: number, nodeCount: number] = ...

    In the ordered set of trees with N labeled nodes, a set where the given tree is very much a member of, what is the ordinal number of the given tree in the set? Returns a numeric pair of ordinal and node tree count.

    Type Declaration

      • (self: Branch<number>): [ordinal: number, nodeCount: number]
      • Parameters

        Returns [ordinal: number, nodeCount: number]