stack

package
v0.0.0-...-3c18875 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL