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

    Function toOrdinal

    • 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.

      Parameters

      • code: number[]

      Returns [ordinal: bigint, nodeCount: number]