stackset

package
v0.0.0-...-70df4a6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any struct {
	// contains filtered or unexported fields
}

func NewAny

func NewAny() *Any

func (*Any) Pop

func (s *Any) Pop() (any, bool)

func (*Any) Push

func (s *Any) Push(v any) bool

type StackSet

type StackSet[T comparable] struct {
	// contains filtered or unexported fields
}

func New

func New[T comparable]() *StackSet[T]

func (*StackSet[T]) Pop

func (s *StackSet[T]) Pop() (T, bool)

func (*StackSet[T]) Push

func (s *StackSet[T]) Push(v T) bool

func (*StackSet[T]) Slice

func (s *StackSet[T]) Slice() []T

Slice returns the stack, however the stack must not be modified

Jump to

Keyboard shortcuts

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