Return the largest leaf in the tree according to the given order.
import {from, of, maximumLeaf} from 'effect-tree'import {Number} from 'effect'const tree = from(10, of(1), from(1_000, of(100)))expect(maximumLeaf(Number.Order)(tree)).toBe(100) Copy
import {from, of, maximumLeaf} from 'effect-tree'import {Number} from 'effect'const tree = from(10, of(1), from(1_000, of(100)))expect(maximumLeaf(Number.Order)(tree)).toBe(100)
Return the largest leaf in the tree according to the given order.