Strip a branch from its children and return the new leaf.
Tree underlying type.
The tree from which all nodes will be removed.
A leaf tree node.
import * as Tree from 'effect-tree'const tree = Tree.branch(1, [Tree.of(2)])expect(Tree.removeForest(tree)).toEqual(Tree.of(1)) Copy
import * as Tree from 'effect-tree'const tree = Tree.branch(1, [Tree.of(2)])expect(Tree.removeForest(tree)).toEqual(Tree.of(1))
Strip a branch from its children and return the new leaf.