Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyStackError = fmt.Errorf("Trying to pop an empty stack.")
View Source
var StackOverflowError = fmt.Errorf("Trying to push to a full stack.")
Functions ¶
This section is empty.
Types ¶
type SizedStack ¶
type SizedStack[V any] struct { // contains filtered or unexported fields }
func NewSizedStack ¶
func NewSizedStack[V any](cap int) SizedStack[V]
func (SizedStack[V]) Cap ¶
func (this SizedStack[V]) Cap() int
func (SizedStack[V]) Len ¶
func (this SizedStack[V]) Len() int
func (*SizedStack[V]) Pop ¶
func (this *SizedStack[V]) Pop() (V, error)
func (*SizedStack[V]) Push ¶
func (this *SizedStack[V]) Push(vals ...V) error
Click to show internal directories.
Click to hide internal directories.