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