True if node count is at least the given number. Will short-circuit when condition is reached rather than traverse entire tree.
import {from, of, nodeCountAtLeast} from 'effect-tree'const leaf = of(1)const tree = from(1, of(2), of(3))expect(nodeCountAtLeast(3)(leaf), 'leaf').toBe(false)expect(nodeCountAtLeast(3)(tree), 'branch').toBe(true) Copy
import {from, of, nodeCountAtLeast} from 'effect-tree'const leaf = of(1)const tree = from(1, of(2), of(3))expect(nodeCountAtLeast(3)(leaf), 'leaf').toBe(false)expect(nodeCountAtLeast(3)(tree), 'branch').toBe(true)
True if node count is at least the given number. Will short-circuit when condition is reached rather than traverse entire tree.