effect-tree
    Preparing search index...

    Variable toOrdinalConst

    toOrdinal: (code: number[]) => [ordinal: number, nodeCount: number] = ...

    Get the node count and index of the given prüfer code. This is the opposite of ordinalToPrüfer in that composing one of each in any order is identity. Returns a pair of node count and ordinal, where the ordinal is always smaller than the node count.

    Type Declaration

      • (code: number[]): [ordinal: number, nodeCount: number]
      • Parameters

        • code: number[]

        Returns [ordinal: number, nodeCount: number]