stack

package
v0.0.0-...-db652b2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	Value interface{}

	Next *Element
}

Element is an element in the stack

type Stack

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

The stack representation. The zero value of the Stack is an empty stack ready to use

func (*Stack) Init

func (stack *Stack) Init()

Init is not necessary to initialize a new stack. Use it to Re-initialize an existing stack

func (*Stack) Len

func (stack *Stack) Len() int

func (*Stack) Pop

func (stack *Stack) Pop() interface{}

func (*Stack) Push

func (stack *Stack) Push(value interface{})

func (*Stack) Top

func (stack *Stack) Top() interface{}

Jump to

Keyboard shortcuts

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