Remove first child of given tree.
Tree underlying type.
The tree from which a node will be removed.
The tree with on less node.
import * as Tree from 'effect-tree'const tree = Tree.branch(1, [Tree.of(2), Tree.of(3), Tree.of(4)])const changed = Tree.removeFirstChild(tree)expect(Tree.getForest(changed)).toEqual([Tree.of(3), Tree.of(4)]) Copy
import * as Tree from 'effect-tree'const tree = Tree.branch(1, [Tree.of(2), Tree.of(3), Tree.of(4)])const changed = Tree.removeFirstChild(tree)expect(Tree.getForest(changed)).toEqual([Tree.of(3), Tree.of(4)])
Remove first child of given tree.