Show / Hide Table of Contents

Interface IStack<T>

Implements a First-In-Last-Out stack data structure.

Inherited Members
IDataStructure<T>.ToArray()
ISteppable<T>.StepperBreak<TStep>(TStep)
DataStructure.ICountable.Count
DataStructure.IClearable.Clear()
Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public interface IStack<T> : IDataStructure<T>, ISteppable<T>, System.Collections.Generic.IEnumerable<T>, DataStructure.ICountable, DataStructure.IClearable
Type Parameters
Name Description
T

The generic type within the structure.

Methods

| Improve this Doc View Source

Peek()

Returns the most recent addition to the stack.

Declaration
T Peek()
Returns
Type Description
T

The most recent addition to the stack.

| Improve this Doc View Source

Pop()

Removes and returns the most recent addition to the stack.

Declaration
T Pop()
Returns
Type Description
T

The most recent addition to the stack.

| Improve this Doc View Source

Push(T)

Adds an item to the top of the stack.

Declaration
void Push(T push)
Parameters
Type Name Description
T push

The item to add to the stack.

Extension Methods

Steppable.Stepper<T>(ISteppable<T>, Action<T>)
Steppable.Stepper<T, TStep>(ISteppable<T>, TStep)
Steppable.StepperBreak<T>(ISteppable<T>, Func<T, StepStatus>)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX