Count all nodes that are descendants of the root node and the root node itself.
import {tree, from, of, nodeCount} from 'effect-tree'import {pipe} from 'effect'const actual = pipe( [of(2), from(3, of(4), of(5)), of(6)], tree.flipped(1), nodeCount)expect(actual).toBe(6) Copy
import {tree, from, of, nodeCount} from 'effect-tree'import {pipe} from 'effect'const actual = pipe( [of(2), from(3, of(4), of(5)), of(6)], tree.flipped(1), nodeCount)expect(actual).toBe(6)
Count all nodes that are descendants of the root node and the root node itself.