Get the nodes to the left of the focus node.
Underlying tree type.
Zipper to be queried.
Possibly empty list of trees.
import {Zipper, from, of} from 'effect-tree'import {pipe} from 'effect'const tree = from(1, of(2), of(3))const zipper = pipe( tree, Zipper.fromTree, Zipper.head)expect(Zipper.getRights(zipper)).toEqual([of(3)])const moved = Zipper.next(zipper)expect(Zipper.getRights(moved)).toEqual([]) Copy
import {Zipper, from, of} from 'effect-tree'import {pipe} from 'effect'const tree = from(1, of(2), of(3))const zipper = pipe( tree, Zipper.fromTree, Zipper.head)expect(Zipper.getRights(zipper)).toEqual([of(3)])const moved = Zipper.next(zipper)expect(Zipper.getRights(moved)).toEqual([])
Get the nodes to the left of the focus node.