stack

package
v0.0.0-...-48035a6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 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 Node

type Node struct {
	Data Thing
	Next *Node
}

func (Node) String

func (n Node) String() string

type Stack

type Stack struct {
	Top  *Node
	Size int
}

func (*Stack) Empty

func (s *Stack) Empty() bool

func (*Stack) JoinString

func (s *Stack) JoinString(delim string) string

func (*Stack) Peek

func (s *Stack) Peek() (Thing, bool)

func (*Stack) Pop

func (s *Stack) Pop() (t Thing, ok bool)

func (*Stack) Push

func (s *Stack) Push(t Thing)

func (*Stack) String

func (s *Stack) String() string

type Thing

type Thing string

Jump to

Keyboard shortcuts

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