stack

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 2 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 struct {
	// contains filtered or unexported fields
}

Define Stack struct

func New added in v0.1.0

func New() *Stack

New empty Stack

func (*Stack) Clear

func (s *Stack) Clear()

Clear stack

func (*Stack) Filter

func (s *Stack) Filter(matchFunc matchFunc) *Stack

Filter function

func (*Stack) ForEach

func (s *Stack) ForEach(eachFunc eachFunc)

ForEach function

func (*Stack) Map

func (s *Stack) Map(mapFunc mapFunc) *Stack

Map function

func (*Stack) MatchAll

func (s *Stack) MatchAll(matchFunc matchFunc) bool

MatchAll function

func (*Stack) MatchAny

func (s *Stack) MatchAny(matchFunc matchFunc) bool

MatchAny function

func (*Stack) MatchNone

func (s *Stack) MatchNone(matchFunc matchFunc) bool

MatchNone function

func (*Stack) Pop

func (s *Stack) Pop() gotypes.E

Pop element

func (*Stack) Push

func (s *Stack) Push(e gotypes.E) *Stack

Push element

func (*Stack) Reduce

func (s *Stack) Reduce(val gotypes.E, reduceFunc reduceFunc) gotypes.E

Reduce function

func (*Stack) Size

func (s *Stack) Size() int

Return stack size

Jump to

Keyboard shortcuts

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