itacart.index.is_atomic
- itacart.index.is_atomic(index)[source]
Whether the index denotes exactly one terminal cell.
- Parameters:
index (
str) – Compositional index string.- Return type:
- Returns:
Truewhen the index has no sibling separators.- Raises:
InvalidIndexError – If the index is malformed. A malformed string denotes no cell at all, which is a different claim from “more than one”;
is_valid_index()is the predicate for that.