Link

Table of contents


MutableStack (interface)

Signature

export interface MutableStack<A> {
  push(a: A): void
  pop(): A | undefined
  peek(): A | undefined
  isEmpty(): boolean
  size(): number
}

mutableStack (function)

Signature

export function mutableStack<A>(): MutableStack<A> { ... }