internal

package
v0.0.0-...-6dfbae8 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestEmpty

func TestEmpty(t *testing.T, g func() Stack[int])

func TestLen

func TestLen(t *testing.T, g func() Stack[int])

func TestPeek

func TestPeek(t *testing.T, g func() Stack[int])

func TestPop

func TestPop(t *testing.T, g func() Stack[int])

func TestPush

func TestPush(t *testing.T, g func() Stack[int])

Types

type Gen

type Gen[T any] func() Stack[T]

type Stack

type Stack[T any] interface {
	Push(x T)
	Pop() T
	Peek() T
	Len() int
	Empty() bool
}

Jump to

Keyboard shortcuts

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