Collections.Stack
Purpose
Section titled “Purpose”LIFO collection for scoped and algorithmic workflows.
Candidate surface
Section titled “Candidate surface”Stack<T>.Push(T value) -> unitStack<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.