Compute the maximum node depth of all nodes in a tree.
import {from, of, maximumNodeHeight} from 'effect-tree'const tree = from( 1, from( 2, of( 3 // ← deepest leaf ) ), of(4),)expect(maximumNodeHeight(tree)).toBe(3) Copy
import {from, of, maximumNodeHeight} from 'effect-tree'const tree = from( 1, from( 2, of( 3 // ← deepest leaf ) ), of(4),)expect(maximumNodeHeight(tree)).toBe(3)
Compute the maximum node depth of all nodes in a tree.