Interface IStack<V, P, S>

Generic interface for collections implementing stack functionality.

interface IStack<V, P, S> {
    peek(): undefined | V;
    pop(): undefined | P;
    push(x): S;
}

Type Parameters

  • V

    value type

  • P

    return type for pop()

  • S

    return type for push()

Methods

Methods

Generated using TypeDoc