Documentation ¶
Index ¶
- func Insert[S ~[]T, T any](s S, index int, v T) S
- func Remove[S ~[]T, T any](s S, index int) S
- func Reverse[S ~[]T, T any](s S)
- type Numerics
- func (this Numerics[T]) Back() T
- func (this Numerics[T]) Capacity() int
- func (this *Numerics[T]) Clear()
- func (this *Numerics[T]) CopyFrom(o Numerics[T])
- func (this Numerics[T]) Data() []T
- func (this Numerics[T]) Empty() bool
- func (this Numerics[T]) Equal(o Numerics[T]) bool
- func (this *Numerics[T]) Erase(index int)
- func (this *Numerics[T]) EraseAll(w T)
- func (this *Numerics[T]) EraseIf(fn func(T) bool)
- func (this Numerics[T]) Find(w T) int
- func (this Numerics[T]) FromTo(from, to int) Numerics[T]
- func (this Numerics[T]) Front() T
- func (this Numerics[T]) Get(index int) T
- func (this Numerics[T]) Head(count int) Numerics[T]
- func (this Numerics[T]) HeadMax(count int) Numerics[T]
- func (this Numerics[T]) Includes(v T) bool
- func (this *Numerics[T]) Insert(index int, v T)
- func (this *Numerics[T]) PushBack(v T)
- func (this *Numerics[T]) PushFront(v T)
- func (this *Numerics[T]) Resize(size int)
- func (this Numerics[T]) Reverse()
- func (this Numerics[T]) Set(index int, v T)
- func (this *Numerics[T]) SetData(data []T)
- func (this Numerics[T]) Size() int
- func (this Numerics[T]) Sort()
- func (this Numerics[T]) Tail(count int) Numerics[T]
- func (this Numerics[T]) TailMax(count int) Numerics[T]
- func (this Numerics[T]) Transform(fn func(v T) T)
- type Slice
- func (this Slice[T]) Back() T
- func (this Slice[T]) Capacity() int
- func (this *Slice[T]) Clear()
- func (this *Slice[T]) CopyFrom(o Slice[T])
- func (this Slice[T]) Data() []T
- func (this Slice[T]) Empty() bool
- func (this Slice[T]) Equal(o Slice[T], fn func(T, T) bool) bool
- func (this *Slice[T]) Erase(index int)
- func (this *Slice[T]) EraseIf(fn func(T) bool)
- func (this Slice[T]) FromTo(from, to int) Slice[T]
- func (this Slice[T]) Front() T
- func (this Slice[T]) Get(index int) T
- func (this Slice[T]) Head(count int) Slice[T]
- func (this Slice[T]) HeadMax(count int) Slice[T]
- func (this *Slice[T]) Insert(index int, v T)
- func (this *Slice[T]) PushBack(v T)
- func (this *Slice[T]) PushFront(v T)
- func (this *Slice[T]) Resize(size int)
- func (this Slice[T]) Reverse()
- func (this Slice[T]) Set(index int, v T)
- func (this *Slice[T]) SetData(data []T)
- func (this Slice[T]) Size() int
- func (this Slice[T]) Sort(fn func(T, T) bool)
- func (this Slice[T]) Tail(count int) Slice[T]
- func (this Slice[T]) TailMax(count int) Slice[T]
- func (this Slice[T]) Transform(fn func(v T) T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Numerics ¶ added in v0.1.37
type Numerics[T constraints.Ordered] Slice[T]
func NewNumerics ¶ added in v0.1.37
func NewNumerics[T constraints.Ordered]() Numerics[T]
func NewNumericsWithCapacity ¶ added in v0.1.37
func NewNumericsWithCapacity[T constraints.Ordered](capacity int) Numerics[T]
func NewNumericsWithSize ¶ added in v0.1.37
func NewNumericsWithSize[T constraints.Ordered](size int) Numerics[T]
Click to show internal directories.
Click to hide internal directories.