Documentation ¶
Index ¶
- func CheckInSlice[T constraints.Ordered](a T, s []T) bool
- func DelOneInSlice[T constraints.Ordered](a T, old []T) (new []T)
- func List[T, U comparable](from []T, iteratee func(T) U) []U
- func SliceFiltrate[V any](collection []V, filtrate func(V, int) bool) []V
- func SliceGroupBy[T any, U comparable](collection []T, iteratee func(T) U) map[U][]T
- func SliceUniq[T any, U comparable](collection []T, iteratee func(T) U) []T
- func SliceUpdateElement[T any, R any](collection []T, iteratee func(T, int) R) []R
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInSlice ¶
func CheckInSlice[T constraints.Ordered](a T, s []T) bool
CheckInSlice check value in slice
func DelOneInSlice ¶
func DelOneInSlice[T constraints.Ordered](a T, old []T) (new []T)
DelOneInSlice delete one element of slice left->right
func List ¶
func List[T, U comparable](from []T, iteratee func(T) U) []U
func SliceFiltrate ¶
func SliceGroupBy ¶
func SliceGroupBy[T any, U comparable](collection []T, iteratee func(T) U) map[U][]T
func SliceUniq ¶
func SliceUniq[T any, U comparable](collection []T, iteratee func(T) U) []T
func SliceUpdateElement ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.