Create a new leaf from its value.
Underlying tree type.
The tree root value.
A new leaf with the given value.
import * as Tree from 'effect-tree'const leaf = Tree.leaf(1)expect(Tree.isLeaf(leaf), 'isLeaf').toBe(true)expect(Tree.getValue(leaf), 'value').toBe(1) Copy
import * as Tree from 'effect-tree'const leaf = Tree.leaf(1)expect(Tree.isLeaf(leaf), 'isLeaf').toBe(true)expect(Tree.getValue(leaf), 'value').toBe(1)
Create a new leaf from its value.