Documentation
¶
Index ¶
- func CountMatches[T comparable](list []T, val T) int
- func Create3DArray[T any](dimensions []int) [][][]T
- func IndexOf[T comparable](list []T, val T) int
- type AnyMap
- type ExplorationSet
- type List
- type ListTwoD
- type Number
- type Set
- func (set *Set[T]) Add(val T)
- func (set *Set[T]) AddAll(vals ...T)
- func (set Set[T]) Contains(val T) bool
- func (set Set[T]) ContainsAll(vals ...T) bool
- func (set *Set[T]) Intersect(other Set[T]) Set[T]
- func (set Set[T]) IsEmpty() bool
- func (set *Set[T]) Remove(search T)
- func (set *Set[T]) Union(other Set[T]) Set[T]
- type Stack
- func (stack *Stack[T]) IsEmpty() bool
- func (stack *Stack[T]) Items() []T
- func (stack *Stack[T]) Pop() T
- func (stack *Stack[T]) Push(val T)
- func (stack *Stack[T]) PushAll(vals []T)
- func (stack *Stack[T]) PushFront(val T)
- func (stack *Stack[T]) PushFrontAll(vals []T)
- func (stack *Stack[T]) Size() int
- func (stack *Stack[T]) SortFunction(scorer func(a T) float64)
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountMatches ¶
func CountMatches[T comparable](list []T, val T) int
func Create3DArray ¶
func IndexOf ¶
func IndexOf[T comparable](list []T, val T) int
Types ¶
type AnyMap ¶
type AnyMap[T comparable, R any] map[T]R
type ExplorationSet ¶
type List ¶
type List[T comparable] []T
type Stack ¶
type Stack[T comparable] struct { // contains filtered or unexported fields }
func NewStack ¶
func NewStack[T comparable]() *Stack[T]
func (*Stack[T]) PushFrontAll ¶
func (stack *Stack[T]) PushFrontAll(vals []T)
func (*Stack[T]) SortFunction ¶
Click to show internal directories.
Click to hide internal directories.