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 Sept. 26, 2026, 1:07 a.m.