Documentation ¶ Index ¶ type Stack func Empty[A any]() *Stack[A] func FromIterator[A any](initialElements iterable.Iterable[A]) *Stack[A] func FromSlice[A any](initialElements []A) *Stack[A] func (s *Stack[A]) Iterator() iterable.Iterator[A] func (s *Stack[A]) Peek() *A func (s *Stack[A]) Pop() *A func (s *Stack[A]) Push(a A) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Stack ¶ type Stack[A any] struct { Items []A } func Empty ¶ func Empty[A any]() *Stack[A] func FromIterator ¶ func FromIterator[A any](initialElements iterable.Iterable[A]) *Stack[A] func FromSlice ¶ func FromSlice[A any](initialElements []A) *Stack[A] func (*Stack[A]) Iterator ¶ func (s *Stack[A]) Iterator() iterable.Iterator[A] func (*Stack[A]) Peek ¶ func (s *Stack[A]) Peek() *A func (*Stack[A]) Pop ¶ func (s *Stack[A]) Pop() *A func (*Stack[A]) Push ¶ func (s *Stack[A]) Push(a A) Source Files ¶ View all Source files stack.go Click to show internal directories. Click to hide internal directories.