Versions in this module Expand all Collapse all v0 v0.1.1 May 29, 2024 v0.1.0 May 29, 2024 Changes in this version + const MinCap + type Stack struct + func New[T any](c int) *Stack[T] + func (s *Stack[T]) Cap() int + func (s *Stack[T]) Drain() []T + func (s *Stack[T]) Index(fn func(T) bool) int + func (s *Stack[T]) Iterate(fn func(T) bool) + func (s *Stack[T]) IterateRange(lo, hi int, fn func(T) bool) + func (s *Stack[T]) Peek() T + func (s *Stack[T]) PeekIndex(i int) T + func (s *Stack[T]) Pop() T + func (s *Stack[T]) Push(e T) + func (s *Stack[T]) Reverse() + func (s *Stack[T]) Size() int + func (s *Stack[T]) String() string + type Stack2 struct + func New2[T comparable](c int) *Stack2[T] + func (s *Stack2[T]) Contains(e T) bool