stack

package
v0.0.0-...-9900226 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: AGPL-3.0-or-later Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S

type S[T any] []T

func From

func From[E any, T ~[]E](src T) *S[E]

func Make

func Make[E any](len, cap int) *S[E]

func (*S[T]) Len

func (s *S[T]) Len() int

func (*S[T]) Pop

func (s *S[T]) Pop() (T, error)

func (*S[T]) Push

func (s *S[T]) Push(t T)

Jump to

Keyboard shortcuts

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