Tamale. Anchor. Ordinal
(tamale v0.1.0)
Copy Markdown
Identity anchor.
refs— ids the anchor depends on, conjunctively: losing any of them kills the anchor. (Disjunctive fallback — "relocate to the nearest live element" — is policy, not transport.)adjacent?— when true,refsmust remain consecutive in the space's order; breaking adjacency is{:undefined, :adjacency_broken}. This is how "the boundary between A and B" is expressed — as a first-class predicate, not a neighbor-similarity heuristic. The boundary is part of the referent: aMergethat collapses the refs removes it, and the anchor dies with{:undefined, :boundary_merged}.at_version— space version these refs are valid at.
Summary
Types
@type t() :: %Tamale.Anchor.Ordinal{ adjacent?: boolean(), at_version: Tamale.version(), refs: [Tamale.id(), ...] }