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

    Function withOrdinal

    • Annotate tree nodes with their post-order depth-first ordinal.

      Under the pre key you will find a version that does the same but in depth-first pre-order, and under the breadthFirst key you will find a version that does the same but in breadth-first order.

      Parameters

      • initialize: number = 1

      Returns <A>(self: Tree<A>) => Tree<[A, number]>

    Index

    Methods

    • Type Parameters

      • A

      Parameters

      • order: Order<A>

      Returns (start: number) => (self: Tree<A>) => Tree<[A, number]>