Get the current focus of the zipper.
Underlying tree type.
Zipper to be queried.
The focus of the zipper.
import {Zipper, from, of} from 'effect-tree'import {pipe} from 'effect'const tree = from(1, of(2))const zipper = pipe( tree, Zipper.fromTree, Zipper.head,)expect(Zipper.getFocus(zipper)).toEqual(of(2)) Copy
import {Zipper, from, of} from 'effect-tree'import {pipe} from 'effect'const tree = from(1, of(2))const zipper = pipe( tree, Zipper.fromTree, Zipper.head,)expect(Zipper.getFocus(zipper)).toEqual(of(2))
Get the current focus of the zipper.