% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/30-api-flexseq-validate.R
\name{validate_name_state}
\alias{validate_name_state}
\title{Validate name-state invariants only (debug/test utility)}
\usage{
validate_name_state(t)
}
\arguments{
\item{t}{FingerTree.}
}
\value{
\code{TRUE} invisibly; errors if name invariants are violated.
}
\description{
Checks that trees are either fully unnamed or fully named with unique,
non-empty names.
}
\details{
Intended for debugging and tests, not hot runtime paths.
}
\examples{
x <- as_flexseq(setNames(as.list(letters[1:4]), letters[1:4]))
validate_name_state(x)
}
