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, refs must 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: a Merge that collapses the refs removes it, and the anchor dies with {:undefined, :boundary_merged}.
  • at_version — space version these refs are valid at.

Summary

Types

t()

@type t() :: %Tamale.Anchor.Ordinal{
  adjacent?: boolean(),
  at_version: Tamale.version(),
  refs: [Tamale.id(), ...]
}