Documentation ¶
Index ¶
- type Map
- func (slf Map[K, V]) Chunk(size int) Slice[Map[K, V]]
- func (slf Map[K, V]) Each(abort bool, iterator func(i int, key K, item V) bool) Map[K, V]
- func (slf Map[K, V]) EachF(iterator func(i int, key K, item V) bool) Map[K, V]
- func (slf Map[K, V]) EachT(iterator func(i int, key K, item V) bool) Map[K, V]
- func (slf Map[K, V]) Filter(reserve bool, expression func(key K, value V) bool) Map[K, V]
- func (slf Map[K, V]) FilterCopy(reserve bool, expression func(key K, value V) bool) Map[K, V]
- func (slf Map[K, V]) FilterF(expression func(key K, value V) bool) Map[K, V]
- func (slf Map[K, V]) FilterFCopy(expression func(key K, value V) bool) Map[K, V]
- func (slf Map[K, V]) FilterT(expression func(key K, value V) bool) Map[K, V]
- func (slf Map[K, V]) FilterTCopy(expression func(key K, value V) bool) Map[K, V]
- func (slf Map[K, V]) Keys() Slice[K]
- func (slf Map[K, V]) Map() map[K]V
- func (slf Map[K, V]) Values() Slice[V]
- type Slice
- func (slf Slice[V]) Chunk(size int) Slices[V]
- func (slf Slice[V]) Copy() Slice[V]
- func (slf Slice[V]) Drop(start, n int) Slice[V]
- func (slf Slice[V]) DropBy(fn func(index int, value V) bool) Slice[V]
- func (slf Slice[V]) Each(abort bool, iterator func(index int, item V) bool) Slice[V]
- func (slf Slice[V]) EachF(iterator func(index int, item V) bool) Slice[V]
- func (slf Slice[V]) EachReverse(abort bool, iterator func(index int, item V) bool) Slice[V]
- func (slf Slice[V]) EachReverseF(iterator func(index int, item V) bool) Slice[V]
- func (slf Slice[V]) EachReverseT(iterator func(index int, item V) bool) Slice[V]
- func (slf Slice[V]) EachT(iterator func(index int, item V) bool) Slice[V]
- func (slf Slice[V]) FillBy(fn func(index int, value V) V) Slice[V]
- func (slf Slice[V]) FillByCopy(fn func(index int, value V) V) Slice[V]
- func (slf Slice[V]) FillUntil(abort bool, fn func(index int, value V) (V, bool)) Slice[V]
- func (slf Slice[V]) FillUntilCopy(abort bool, fn func(index int, value V) (V, bool)) Slice[V]
- func (slf Slice[V]) FillUntilF(fn func(index int, value V) (V, bool)) Slice[V]
- func (slf Slice[V]) FillUntilFCopy(fn func(index int, value V) (V, bool)) Slice[V]
- func (slf Slice[V]) FillUntilT(fn func(index int, value V) (V, bool)) Slice[V]
- func (slf Slice[V]) FillUntilTCopy(fn func(index int, value V) (V, bool)) Slice[V]
- func (slf Slice[V]) Filter(reserve bool, expression func(index int, item V) bool) Slice[V]
- func (slf Slice[V]) FilterCopy(reserve bool, expression func(index int, item V) bool) Slice[V]
- func (slf Slice[V]) FilterF(expression func(index int, item V) bool) Slice[V]
- func (slf Slice[V]) FilterFCopy(expression func(index int, item V) bool) Slice[V]
- func (slf Slice[V]) FilterT(expression func(index int, item V) bool) Slice[V]
- func (slf Slice[V]) FilterTCopy(expression func(index int, item V) bool) Slice[V]
- func (slf Slice[V]) Indexes() Slice[int]
- func (slf Slice[V]) Map() Map[int, V]
- func (slf Slice[V]) Shuffle() Slice[V]
- func (slf Slice[V]) ShuffleCopy() Slice[V]
- func (slf Slice[V]) Slice() []V
- func (slf Slice[V]) UniqueBy(fn func(V) any) Slice[V]
- func (slf Slice[V]) Zoom(newSize int) Slice[V]
- type Slices
- func (slf Slices[V]) Drop(start, n int) Slices[V]
- func (slf Slices[V]) DropBy(fn func(index int, value Slice[V]) bool) Slices[V]
- func (slf Slices[V]) Each(abort bool, iterator func(index int, item Slice[V]) bool) Slices[V]
- func (slf Slices[V]) EachF(iterator func(index int, item Slice[V]) bool) Slices[V]
- func (slf Slices[V]) EachReverse(abort bool, iterator func(index int, item Slice[V]) bool) Slices[V]
- func (slf Slices[V]) EachReverseF(iterator func(index int, item Slice[V]) bool) Slices[V]
- func (slf Slices[V]) EachReverseT(iterator func(index int, item Slice[V]) bool) Slices[V]
- func (slf Slices[V]) EachT(iterator func(index int, item Slice[V]) bool) Slices[V]
- func (slf Slices[V]) FillBy(fn func(index int, value Slice[V]) Slice[V]) Slices[V]
- func (slf Slices[V]) FillByCopy(fn func(index int, value Slice[V]) Slice[V]) Slices[V]
- func (slf Slices[V]) FillUntil(abort bool, fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]
- func (slf Slices[V]) FillUntilCopy(abort bool, fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]
- func (slf Slices[V]) FillUntilF(fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]
- func (slf Slices[V]) FillUntilFCopy(fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]
- func (slf Slices[V]) FillUntilT(fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]
- func (slf Slices[V]) FillUntilTCopy(fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]
- func (slf Slices[V]) Filter(reserve bool, expression func(index int, item Slice[V]) bool) Slices[V]
- func (slf Slices[V]) FilterCopy(reserve bool, expression func(index int, item Slice[V]) bool) Slices[V]
- func (slf Slices[V]) FilterF(expression func(index int, item Slice[V]) bool) Slices[V]
- func (slf Slices[V]) FilterFCopy(expression func(index int, item Slice[V]) bool) Slices[V]
- func (slf Slices[V]) FilterT(expression func(index int, item Slice[V]) bool) Slices[V]
- func (slf Slices[V]) FilterTCopy(expression func(index int, item Slice[V]) bool) Slices[V]
- func (slf Slices[V]) Merge() Slice[V]
- func (slf Slices[V]) Shuffle() Slices[V]
- func (slf Slices[V]) ShuffleCopy() Slices[V]
- func (slf Slices[V]) UniqueBy(fn func(Slice[V]) any) Slices[V]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K comparable, V any] map[K]V
func (Map[K, V]) FilterCopy ¶ added in v0.1.5
FilterCopy 是 hash.FilterCopy 的快捷方式
func (Map[K, V]) FilterFCopy ¶ added in v0.1.5
FilterFCopy 是 hash.FilterFCopy 的快捷方式
func (Map[K, V]) FilterTCopy ¶ added in v0.1.5
FilterTCopy 是 hash.FilterTCopy 的快捷方式
type Slice ¶
type Slice[V any] []V
func (Slice[V]) EachReverse ¶ added in v0.1.5
EachReverse 是 slice.EachReverse 的快捷方式
func (Slice[V]) EachReverseF ¶ added in v0.1.5
EachReverseF 是 slice.EachReverseF 的快捷方式
func (Slice[V]) EachReverseT ¶ added in v0.1.5
EachReverseT 是 slice.EachReverseT 的快捷方式
func (Slice[V]) FillByCopy ¶ added in v0.1.5
FillByCopy 是 slice.FillByCopy 的快捷方式
func (Slice[V]) FillUntilCopy ¶ added in v0.1.5
FillUntilCopy 是 slice.FillUntilCopy 的快捷方式
func (Slice[V]) FillUntilF ¶ added in v0.1.5
FillUntilF 是 slice.FillUntilF 的快捷方式
func (Slice[V]) FillUntilFCopy ¶ added in v0.1.5
FillUntilFCopy 是 slice.FillUntilFCopy 的快捷方式
func (Slice[V]) FillUntilT ¶ added in v0.1.5
FillUntilT 是 slice.FillUntilT 的快捷方式
func (Slice[V]) FillUntilTCopy ¶ added in v0.1.5
FillUntilTCopy 是 slice.FillUntilTCopy 的快捷方式
func (Slice[V]) FilterCopy ¶ added in v0.1.5
FilterCopy 是 slice.FilterCopy 的快捷方式
func (Slice[V]) FilterFCopy ¶ added in v0.1.5
FilterFCopy 是 slice.FilterFCopy 的快捷方式
func (Slice[V]) FilterTCopy ¶ added in v0.1.5
FilterTCopy 是 slice.FilterTCopy 的快捷方式
func (Slice[V]) ShuffleCopy ¶ added in v0.1.5
ShuffleCopy 是 slice.ShuffleCopy 的快捷方式
type Slices ¶ added in v0.1.5
func (Slices[V]) EachReverse ¶ added in v0.1.5
func (slf Slices[V]) EachReverse(abort bool, iterator func(index int, item Slice[V]) bool) Slices[V]
EachReverse 的快捷方式
func (Slices[V]) EachReverseF ¶ added in v0.1.5
EachReverseF 的快捷方式
func (Slices[V]) EachReverseT ¶ added in v0.1.5
EachReverseT 的快捷方式
func (Slices[V]) FillByCopy ¶ added in v0.1.5
FillByCopy 的快捷方式
func (Slices[V]) FillUntil ¶ added in v0.1.5
func (slf Slices[V]) FillUntil(abort bool, fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]
FillUntil 的快捷方式
func (Slices[V]) FillUntilCopy ¶ added in v0.1.5
func (slf Slices[V]) FillUntilCopy(abort bool, fn func(index int, value Slice[V]) (Slice[V], bool)) Slices[V]
FillUntilCopy 的快捷方式
func (Slices[V]) FillUntilF ¶ added in v0.1.5
FillUntilF 的快捷方式
func (Slices[V]) FillUntilFCopy ¶ added in v0.1.5
FillUntilFCopy 的快捷方式
func (Slices[V]) FillUntilT ¶ added in v0.1.5
FillUntilT 的快捷方式
func (Slices[V]) FillUntilTCopy ¶ added in v0.1.5
FillUntilTCopy 的快捷方式
func (Slices[V]) FilterCopy ¶ added in v0.1.5
func (slf Slices[V]) FilterCopy(reserve bool, expression func(index int, item Slice[V]) bool) Slices[V]
FilterCopy 的快捷方式
func (Slices[V]) FilterFCopy ¶ added in v0.1.5
FilterFCopy 的快捷方式
func (Slices[V]) FilterTCopy ¶ added in v0.1.5
FilterTCopy 的快捷方式
func (Slices[V]) ShuffleCopy ¶ added in v0.1.5
ShuffleCopy 的快捷方式