stack

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 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 Stack

type Stack []interface{}

Stack struct

func (Stack) Empty

func (s Stack) Empty() bool

Empty tell if it is empty

func (Stack) Peek

func (s Stack) Peek() interface{}

Peek return the last element

func (*Stack) Pop

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

Pop pops element from the stack

func (*Stack) Put

func (s *Stack) Put(i interface{})

Put puts element to stack

Jump to

Keyboard shortcuts

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