validate_tree: Validate full tree invariants (debug/test utility)

View source: R/30-api-flexseq-validate.R

validate_treeR Documentation

Validate full tree invariants (debug/test utility)

Description

Performs expensive full-tree auditing of:

  • structural attributes (monoids/measures) consistency

  • global name-state invariants

Usage

validate_tree(t)

Arguments

t

FingerTree.

Details

Intended for debugging and tests, not hot runtime paths.

Value

TRUE invisibly; errors if invariant violations are found.

Examples

x <- as_flexseq(letters[1:10])
validate_tree(x)

Immutables documentation built on April 29, 2026, 1:06 a.m.