day365

package
v0.0.0-...-36687a4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrEmptyStack

func ErrEmptyStack() error

ErrEmptyStack is the returned error for an empty stack.

Types

type Quack

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

Quack is a data structure combining properties of both stacks and queues.

func (*Quack) Pop

func (q *Quack) Pop() (interface{}, error)

Pop removes and return the item on the left end of the list.

func (*Quack) Pull

func (q *Quack) Pull() (interface{}, error)

Pull removes the item on the right end of the list.

func (*Quack) Push

func (q *Quack) Push(x interface{})

Push adds a new item x to the left end of the list.

Jump to

Keyboard shortcuts

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