Documentation
¶
Index ¶
- Variables
- type Chunk
- func (c Chunk[T]) Append(elems ...Slice[T]) Chunk[T]
- func (c Chunk[T]) Clone() Chunk[T]
- func (c Chunk[T]) ForEach(fn func(index int, item *Slice[T])) Chunk[T]
- func (c Chunk[T]) Join() Slice[T]
- func (c Chunk[T]) Len() int
- func (c Chunk[T]) Redistribute(size uint) Chunk[T]
- func (c Chunk[T]) Reverse() Chunk[T]
- func (c Chunk[T]) ReverseItems() Chunk[T]
- func (c Chunk[T]) Sort(rule func(a, b Slice[T]) int) Chunk[T]
- func (c Chunk[T]) SortItems(rule func(a, b T) int) Chunk[T]
- type Enum
- type Map
- func (m Map[K, V]) Action(actions ...MapAction[K, V]) Map[K, V]
- func (m Map[K, V]) Clone() Map[K, V]
- func (m Map[K, V]) CopyFrom(src Map[K, V]) Map[K, V]
- func (m Map[K, V]) CopyTo(dst Map[K, V]) Map[K, V]
- func (m Map[K, V]) Delete(keys ...K) Map[K, V]
- func (m Map[K, V]) DeleteFunc(del func(K, V) bool) Map[K, V]
- func (m Map[K, V]) ForEach(fn func(key K, item V)) Map[K, V]
- func (m Map[K, V]) Is(conditions ...MapCondition[K, V]) (ok bool)
- func (m Map[K, V]) Keys() Slice[K]
- func (m Map[K, V]) Len() int
- func (m Map[K, V]) ScanKV(keys Slice[K], values Slice[V]) Map[K, V]
- func (m Map[K, V]) ScanSlice(src Slice[V], fn func(item V) (key K)) Map[K, V]
- func (m Map[K, V]) Values() Slice[V]
- type MapAction
- type MapCondition
- type Slice
- func (s Slice[E]) Action(actions ...SliceAction[E]) Slice[E]
- func (s Slice[E]) Append(elems ...E) Slice[E]
- func (s Slice[E]) AppendSlice(elems ...Slice[E]) Slice[E]
- func (s Slice[E]) Cap() int
- func (s Slice[E]) Chunk(size uint) Chunk[E]
- func (s Slice[E]) Clip() Slice[E]
- func (s Slice[E]) Clone() Slice[E]
- func (s Slice[E]) CopyFrom(src Slice[E]) Slice[E]
- func (s Slice[E]) CopyTo(dst Slice[E]) Slice[E]
- func (s Slice[E]) Delete(i, j int) Slice[E]
- func (s Slice[E]) DeleteFunc(del func(E) bool) Slice[E]
- func (s Slice[E]) ForEach(fn func(index int, item *E)) Slice[E]
- func (s Slice[E]) Is(conditions ...SliceCondition[E]) (ok bool)
- func (s Slice[E]) Len() int
- func (s Slice[E]) Reverse() Slice[E]
- func (s Slice[E]) Sort(rule order.Sort[E]) Slice[E]
- type SliceAction
- type SliceCondition
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExists = errors.New("already exists")
ErrAlreadyExists - the object is already contained in the enumeration.
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
Chunk - slice of elements split into groups the length of size.
func (Chunk[T]) Redistribute ¶
func (Chunk[T]) ReverseItems ¶
type Enum ¶
type Enum[T comparable] []T
Enum - enumeration model for type E.
type Map ¶
type Map[K comparable, V any] map[K]V
func MapOf ¶
func MapOf[K comparable, V any](m map[K]V) Map[K, V]
MapOf - method for converting a map into object.Map.
func (Map[K, V]) DeleteFunc ¶
type MapCondition ¶
type MapCondition[K comparable, V any] func(K, V) bool
type Slice ¶
type Slice[E any] []E
Slice - slice model of type E.
func (Slice[E]) AppendSlice ¶
func (Slice[E]) DeleteFunc ¶
type SliceAction ¶
Slice - slice model of type E.
type SliceCondition ¶
Slice - slice model of type E.
Click to show internal directories.
Click to hide internal directories.