True if there are trees to the right of the focus, false if focused node is last in its forest.
Underlying tree type.
Zipper to be queried.
True if there are trees to the right of the focus.
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.hasRights(zipper)).toBe(true)const moved = Zipper.next(zipper)expect(Zipper.hasRights(moved)).toBe(false) 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.hasRights(zipper)).toBe(true)const moved = Zipper.next(zipper)expect(Zipper.hasRights(moved)).toBe(false)
True if there are trees to the right of the focus, false if focused node is last in its forest.