effect-tree
    Preparing search index...

    Function filterMinimumLeaf

    • Filter out the minimal leaf for the given order and return a tuple with:

      1. The given tree with its minimal leaf removed.
      2. The minimal leaf that was removed.
      3. The minimal leaf parent, or None if the tree is a leaf.

      Type Parameters

      • A

      Parameters

      • order: Order<A>

      Returns (t: Tree<A>) => [filtered: Tree<A>, minLeaf: A, maybeParent: Option<A>]