Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option is a function type used to set Options
func WithContainer ¶
WithContainer is used to set a stack's underlying container
func WithGoroutineSafe ¶
WithGoroutineSafe is used to set a stack goroutine-safe
func WithListContainer ¶
WithListContainer is used to set List for a stack's underlying container
type Options ¶
type Options[T any] struct { // contains filtered or unexported fields }
Options holds the Stack's options
type Stack ¶
type Stack[T any] struct { // contains filtered or unexported fields }
Stack is a last-in-first-out data structure
func (*Stack[T]) Pop ¶
func (s *Stack[T]) Pop() T
Pop removes the top value in the stack and returns it
Click to show internal directories.
Click to hide internal directories.