Get the forest of the tree node under focus. Result could be an empty list if the focused node is a Leaf.
Underlying tree type.
The tree being queried.
A possibly empty list of trees.
import {Zipper, from, of} from 'effect-tree'const tree = from(1, of(2))const zipper = Zipper.fromTree(tree)expect(Zipper.getForest(zipper)).toEqual([of(2)]) Copy
import {Zipper, from, of} from 'effect-tree'const tree = from(1, of(2))const zipper = Zipper.fromTree(tree)expect(Zipper.getForest(zipper)).toEqual([of(2)])
Get the forest of the tree node under focus. Result could be an empty list if the focused node is a Leaf.