ucont

package
v0.2.48 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal added in v0.1.88

func Equal[S ~[]T, T comparable](a, b S) bool

func Insert

func Insert[S ~[]T, T any](s S, index int, v T) S

func Remove

func Remove[S ~[]T, T any](s S, index int) S

func Reverse

func Reverse[S ~[]T, T any](s S)

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]

func (Numerics[T]) Back added in v0.1.38

func (o Numerics[T]) Back() T

func (Numerics[T]) Capacity added in v0.1.38

func (o Numerics[T]) Capacity() int

func (*Numerics[T]) Clear added in v0.1.38

func (o *Numerics[T]) Clear()

func (*Numerics[T]) CopyFrom added in v0.1.38

func (o *Numerics[T]) CopyFrom(v Numerics[T])

func (Numerics[T]) Data added in v0.1.38

func (o Numerics[T]) Data() []T

func (Numerics[T]) Empty added in v0.1.38

func (o Numerics[T]) Empty() bool

func (Numerics[T]) Equal added in v0.1.37

func (o Numerics[T]) Equal(v Numerics[T]) bool

func (*Numerics[T]) Erase added in v0.1.38

func (o *Numerics[T]) Erase(index int)

func (*Numerics[T]) EraseAll added in v0.1.37

func (o *Numerics[T]) EraseAll(w T)

func (*Numerics[T]) EraseIf added in v0.1.38

func (o *Numerics[T]) EraseIf(fn func(T) bool)

func (Numerics[T]) Find added in v0.1.37

func (o Numerics[T]) Find(w T) int

func (Numerics[T]) FromTo added in v0.1.38

func (o Numerics[T]) FromTo(from, to int) Numerics[T]

func (Numerics[T]) Front added in v0.1.38

func (o Numerics[T]) Front() T

func (Numerics[T]) Get added in v0.1.38

func (o Numerics[T]) Get(index int) T

func (Numerics[T]) Head added in v0.1.38

func (o Numerics[T]) Head(count int) Numerics[T]

func (Numerics[T]) HeadMax added in v0.1.38

func (o Numerics[T]) HeadMax(count int) Numerics[T]

func (Numerics[T]) Includes added in v0.1.37

func (o Numerics[T]) Includes(v T) bool

func (*Numerics[T]) Insert added in v0.1.38

func (o *Numerics[T]) Insert(index int, v T)

func (*Numerics[T]) PushBack added in v0.1.38

func (o *Numerics[T]) PushBack(v T)

func (*Numerics[T]) PushFront added in v0.1.38

func (o *Numerics[T]) PushFront(v T)

func (*Numerics[T]) Resize added in v0.1.38

func (o *Numerics[T]) Resize(size int)

func (Numerics[T]) Reverse added in v0.1.38

func (o Numerics[T]) Reverse()

func (Numerics[T]) Set added in v0.1.38

func (o Numerics[T]) Set(index int, v T)

func (*Numerics[T]) SetData added in v0.1.38

func (o *Numerics[T]) SetData(data []T)

func (Numerics[T]) Size added in v0.1.38

func (o Numerics[T]) Size() int

func (Numerics[T]) Sort added in v0.1.37

func (o Numerics[T]) Sort()

func (Numerics[T]) Tail added in v0.1.38

func (o Numerics[T]) Tail(count int) Numerics[T]

func (Numerics[T]) TailMax added in v0.1.38

func (o Numerics[T]) TailMax(count int) Numerics[T]

func (Numerics[T]) Transform added in v0.1.38

func (o Numerics[T]) Transform(fn func(v T) T)

type Slice

type Slice[T any] []T

func NewSlice

func NewSlice[T any]() Slice[T]

func NewSliceWithCapacity

func NewSliceWithCapacity[T any](capacity int) Slice[T]

func NewSliceWithSize

func NewSliceWithSize[T any](size int) Slice[T]

func (Slice[T]) Back

func (this Slice[T]) Back() T

func (Slice[T]) Capacity

func (this Slice[T]) Capacity() int

func (*Slice[T]) Clear

func (this *Slice[T]) Clear()

func (*Slice[T]) CopyFrom

func (this *Slice[T]) CopyFrom(o Slice[T])

func (Slice[T]) Data

func (this Slice[T]) Data() []T

func (Slice[T]) Empty

func (this Slice[T]) Empty() bool

func (Slice[T]) Equal

func (this Slice[T]) Equal(o Slice[T], fn func(T, T) bool) bool

func (*Slice[T]) Erase

func (this *Slice[T]) Erase(index int)

func (*Slice[T]) EraseIf

func (this *Slice[T]) EraseIf(fn func(T) bool)

func (Slice[T]) FromTo

func (this Slice[T]) FromTo(from, to int) Slice[T]

func (Slice[T]) Front

func (this Slice[T]) Front() T

func (Slice[T]) Get added in v0.1.38

func (this Slice[T]) Get(index int) T

func (Slice[T]) Head

func (this Slice[T]) Head(count int) Slice[T]

func (Slice[T]) HeadMax

func (this Slice[T]) HeadMax(count int) Slice[T]

func (*Slice[T]) Insert

func (this *Slice[T]) Insert(index int, v T)

func (*Slice[T]) PushBack

func (this *Slice[T]) PushBack(v T)

func (*Slice[T]) PushFront

func (this *Slice[T]) PushFront(v T)

func (*Slice[T]) Resize

func (this *Slice[T]) Resize(size int)

func (Slice[T]) Reverse

func (this Slice[T]) Reverse()

func (Slice[T]) Set added in v0.1.38

func (this Slice[T]) Set(index int, v T)

func (*Slice[T]) SetData

func (this *Slice[T]) SetData(data []T)

func (Slice[T]) Size

func (this Slice[T]) Size() int

func (Slice[T]) Sort

func (this Slice[T]) Sort(fn func(T, T) bool)

func (Slice[T]) Tail

func (this Slice[T]) Tail(count int) Slice[T]

func (Slice[T]) TailMax

func (this Slice[T]) TailMax(count int) Slice[T]

func (Slice[T]) Transform added in v0.1.38

func (this Slice[T]) Transform(fn func(v T) T)

Jump to

Keyboard shortcuts

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