Skip to content

containers.Stack

containers · scripts/+containers/Stack.m

containers.Stack: last-in first-out (LIFO) stack.

S = containers.Stack ()

Use PUSH, POP, PEEK, ISEMPTY and LENGTH. A Stack is a handle: copies of the variable refer to the same object.