lister

package
v1.0.37 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List[T any] struct {
	// contains filtered or unexported fields
}

func NewList

func NewList[T any]() *List[T]

func (*List[T]) Empty

func (t *List[T]) Empty() bool

func (*List[T]) Len

func (t *List[T]) Len() int

func (*List[T]) PeekB

func (t *List[T]) PeekB() (T, bool)

func (*List[T]) PeekF

func (t *List[T]) PeekF() (T, bool)

func (*List[T]) PopB

func (t *List[T]) PopB() (T, bool)

func (*List[T]) PopF

func (t *List[T]) PopF() (T, bool)

func (*List[T]) PushB

func (t *List[T]) PushB(elems ...T)

func (*List[T]) PushF

func (t *List[T]) PushF(elems ...T)

type Queue

type Queue[T any] struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue[T any]() *Queue[T]

func (*Queue[T]) Empty

func (t *Queue[T]) Empty() bool

func (*Queue[T]) Len

func (t *Queue[T]) Len() int

func (*Queue[T]) Peek

func (t *Queue[T]) Peek() (T, bool)

func (*Queue[T]) Pop

func (t *Queue[T]) Pop() (T, bool)

func (*Queue[T]) Push

func (t *Queue[T]) Push(elems ...T)

type Stack

type Stack[T any] struct {
	// contains filtered or unexported fields
}

func NewStack

func NewStack[T any]() *Stack[T]

func (*Stack[T]) Empty

func (t *Stack[T]) Empty() bool

func (*Stack[T]) Len

func (t *Stack[T]) Len() int

func (*Stack[T]) Peek

func (t *Stack[T]) Peek() (T, bool)

func (*Stack[T]) Pop

func (t *Stack[T]) Pop() (T, bool)

func (*Stack[T]) Push

func (t *Stack[T]) Push(elems ...T)

Jump to

Keyboard shortcuts

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