effect-tree
    Preparing search index...

    Function asOrdinal

    • Replaces all tree nodes with their unique ordinal. The order is depth-first post-order, so that the root node value is the maximum. For example a tree shaped so:

       ┬?
      ├─?
      └┬?
      ├─?
      └─?

      Will become this tree:

      5
      ├─1
      └┬4
      ├─2
      └─3

      Parameters

      • initialize: number

      Returns (self: Tree<any>) => Tree<number>

    Index

    Methods

    Methods