effect-tree
    Preparing search index...

    Function destruct

    • Deconstruct the node and possibly empty forest of a tree. Useful in pipelines.

      Type Parameters

      • A

        Underlying tree type.

      Parameters

      • self: Tree<A>

        The tree being deconstructed.

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

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