one

package
v0.0.0-...-a6853de Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 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 Stacks

type Stacks interface {
	Push(id int, v interface{}) error
	Pop(id int) (interface{}, bool)
	Size(id int) int
}

Stacks is a collection of stacks accessible by an ID.

func New

func New(numStacks, totalCapacity int) Stacks

New returns Stacks with a specified number of stacks each with a given capacity.

Jump to

Keyboard shortcuts

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