Return the first child tree of a branch.
Underlying tree type.
tree to navigate.
The tree that is first in the forest of the given branch.
import * as Tree from 'effect-tree'const branch = Tree.branch(2, [Tree.of(1), Tree.of(2)])expect(Tree.firstChild(branch)).toEqual(Tree.of(1)) Copy
import * as Tree from 'effect-tree'const branch = Tree.branch(2, [Tree.of(1), Tree.of(2)])expect(Tree.firstChild(branch)).toEqual(Tree.of(1))
Return the first child tree of a branch.