convert

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 SliceFiltrate[V any](collection []V, filtrate func(V, int) bool) []V

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

func SliceUpdateElement[T any, R any](collection []T, iteratee func(T, int) R) []R

Types

This section is empty.

Jump to

Keyboard shortcuts

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