IImmutableStack<T>
Represents an immutable last-in-first-out (LIFO) collection.
NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Gets a value that indicates whether this immutable stack is empty.
Removes all objects from the immutable stack.
T Peek()
Returns the element at the top of the immutable stack without removing it.
Removes the element at the top of the immutable stack and returns the new stack.
Inserts an element at the top of the immutable stack and returns the new stack.