Skip to content

Collections.Stack

LIFO collection for scoped and algorithmic workflows.

  • Stack<T>.Push(T value) -> unit
  • Stack<T>.TryPop() -> Result<T, StackError>
  • Stack<T>.Count() -> i64
  • Error behavior for empty stack must be explicit.
  • Growth controls should be documented for deterministic performance.