package
Version:
v0.0.0-...-a6853de
Opens a new window with list of versions in this module.
Published: Oct 3, 2018
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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(numStacks, totalCapacity int) Stacks
New returns Stacks with a specified number of stacks each with a given capacity.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.