Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedListStack ¶
type LinkedListStack[T constraints.Ordered] struct { // contains filtered or unexported fields }
func NewLinkedListStack ¶
func NewLinkedListStack[T constraints.Ordered]() *LinkedListStack[T]
func (*LinkedListStack[T]) Pop ¶
func (s *LinkedListStack[T]) Pop() T
func (*LinkedListStack[T]) PopPair ¶
func (s *LinkedListStack[T]) PopPair() (T, T)
func (*LinkedListStack[T]) Push ¶
func (s *LinkedListStack[T]) Push(value T)
func (*LinkedListStack[T]) PushPair ¶
func (s *LinkedListStack[T]) PushPair(x T, y T)
func (*LinkedListStack[T]) Size ¶
func (s *LinkedListStack[T]) Size() int
type SliceStack ¶
type SliceStack[T constraints.Ordered] struct { // contains filtered or unexported fields }
func NewSliceStack ¶
func NewSliceStack[T constraints.Ordered]() *SliceStack[T]
func (*SliceStack[T]) Pop ¶
func (s *SliceStack[T]) Pop() T
func (*SliceStack[T]) PopPair ¶
func (s *SliceStack[T]) PopPair() (T, T)
func (*SliceStack[T]) Push ¶
func (s *SliceStack[T]) Push(v T)
func (*SliceStack[T]) PushPair ¶
func (s *SliceStack[T]) PushPair(x T, y T)
func (*SliceStack[T]) Size ¶
func (s *SliceStack[T]) Size() int
Click to show internal directories.
Click to hide internal directories.