stacks

package
v0.0.0-...-a16ce98 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2013 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Stacks of different types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

type Stack interface {
	Push([]byte)
	Pop() []byte
	Drop(int) (st [][]byte)
	Dump() [][]byte
	Depth() int
	Index(p int) []byte
	Clear()
}

type StackT

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

func NewStack

func NewStack(n int) *StackT

func (*StackT) Clear

func (st *StackT) Clear()

func (*StackT) Depth

func (st *StackT) Depth() int

func (*StackT) Drop

func (st *StackT) Drop(n int) [][]byte

func (*StackT) Dump

func (st *StackT) Dump() [][]byte

func (*StackT) Index

func (st *StackT) Index(p int) []byte

func (*StackT) Pop

func (st *StackT) Pop() []byte

func (*StackT) Push

func (st *StackT) Push(s []byte)

type StrStack

type StrStack interface {
	Push(string)
	Pop() string
	Drop(int) (st []string)
	Dump() []string
	Depth() int
	Index(p int) string
	Clear()
}

type StrStackT

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

func NewStrStack

func NewStrStack(n int) *StrStackT

func (*StrStackT) Clear

func (st *StrStackT) Clear()

func (*StrStackT) Depth

func (st *StrStackT) Depth() int

func (*StrStackT) Drop

func (st *StrStackT) Drop(n int) []string

func (*StrStackT) Dump

func (st *StrStackT) Dump() []string

func (*StrStackT) Index

func (st *StrStackT) Index(p int) string

func (*StrStackT) Pop

func (st *StrStackT) Pop() string

func (*StrStackT) Push

func (st *StrStackT) Push(s string)

Jump to

Keyboard shortcuts

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