datastructures v0.1.1 Data.Stack protocol

Summary

Types

t :: term
v :: any

Functions

pop(self, default \\ nil)

Specs

pop(t, v) :: {v, t}
pop!(self)

Specs

pop!(t) :: {v, t} | no_return
push(self, value)

Specs

push(t, v) :: t