Mutable stack object implementation.
Procs
proc newStackM*[T](): StackM[T]
- Creates new stack object. Source Edit
proc len*(s: StackM): int
- Returns the length of the stack. Source Edit
proc isEmpty*(s: StackM): bool
- Checks if the stack is empty. Source Edit
proc push*[T](s: var StackM[T]; v: T)
- Pushes the value v onto the top of the stack s. Source Edit
proc pop*[T](s: var StackM[T]): T
- Pops the value from the top of the stack s. Throws an exception if the stack is empty. Source Edit