lister

package
v1.0.33 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 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 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() optioner.Option[T]

func (*List[T]) PeekF

func (t *List[T]) PeekF() optioner.Option[T]

func (*List[T]) PopB

func (t *List[T]) PopB() optioner.Option[T]

func (*List[T]) PopF

func (t *List[T]) PopF() optioner.Option[T]

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() optioner.Option[T]

func (*Queue[T]) Pop

func (t *Queue[T]) Pop() optioner.Option[T]

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() optioner.Option[T]

func (*Stack[T]) Pop

func (t *Stack[T]) Pop() optioner.Option[T]

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