Return the last child tree of a branch.
Underlying tree type.
tree to navigate.
The tree that is last 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.lastChild(branch)).toEqual(Tree.of(2)) Copy
import * as Tree from 'effect-tree'const branch = Tree.branch(2, [Tree.of(1), Tree.of(2)])expect(Tree.lastChild(branch)).toEqual(Tree.of(2))
Return the last child tree of a branch.