effect-tree
    Preparing search index...

    Function destructBranch

    • Same as destruct but only for branches, so you are guaranteed a non-empty forest.

      Type Parameters

      • A

        Underlying tree type.

      Parameters

      • self: Branch<A>

        The branch being deconstructed.

      Returns [A, readonly [Tree<A>, Tree<A>]]

      A pair of the tree node value and a non-empty list of child trees.