Functionimport {Draw, from, of} from 'effect-tree'
import {pipe, flow} from 'effect'
const theme: Draw.Theme = pipe(
Draw.getTheme('thin'),
Draw.modFormatter(f => flow(f, label => `«${label}»`)),
)
const tree = from('a', of('b'), of('c'))
expect(Draw.themedTree(tree, theme)).toEqual([
'┬«a» ',
'├─«b»',
'└─«c»',
])
Modify the formatter function of a tree theme using the given function.