package
Version:
v0.7.4
Opens a new window with list of versions in this module.
Published: May 3, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Obj[T any] interface {
Set(data T)
Get() (data T)
Swap(inn T) (out T)
}
type Que[T any] interface {
Push(data T)
Pop() (data T, ok bool)
Peek() (data T, ok bool)
Delete(is func(v T) bool)
HasData() <-chan struct{}
}
type Slice[T any] interface {
Add(data T)
Set(i int, data T)
Get(i int) (data T, ok bool)
Contains(val T) int
Slice() []T
Delete(i int) T
}
Not sure i want to use comparable here
type Stack[T any] interface {
Push(data T)
Pop() (data T, ok bool)
Peek() (data T, ok bool)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.