dsx

package
v0.0.0-...-7ee87ef Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deque

type Deque[T any] interface {
	PushFront(T)
	PushBack(T)
	PopFront() (T, bool)
	PopBack() (T, bool)
	PeekFront() (T, bool)
	PeekBack() (T, bool)
}

type List

type List[T any] interface {
	Append(T)
	Insert(int, T)
	Remove(int) (T, bool)
	At(int) (T, bool)
	Iterate(func(T) bool)
	Len() int
}

type Queue

type Queue[T any] interface {
	Enqueue(T) bool
	Dequeue() (T, bool)
	Peek() (T, bool)
	IsEmpty() bool
}

type Stack

type Stack[T any] interface {
	Push(T) bool
	Pop() (T, bool)
	Peek() (T, bool)
	Len() int
}

Jump to

Keyboard shortcuts

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