Documentation
¶
Index ¶
- func Convert[T1, T2 uint32 | uint64 | int32 | int64](input []T1) []T2
- func ConvertStringToInt[T uint32 | uint64 | int32 | int64](input []string) ([]T, error)
- func ConvertToString[S ~[]T, T uint32 | uint64 | int32 | int64](input S) []string
- func Difference[T comparable](s1, s2 []T) ([]T, []T)
- func Intersect[T comparable](s1, s2 []T) []T
- func RemoveDuplicatedItems[T comparable](input []T) []T
- func Unique[T comparable](slice []T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertStringToInt ¶
func ConvertToString ¶
func Difference ¶
func Difference[T comparable](s1, s2 []T) ([]T, []T)
Difference
To return two slices containing difference between s1 & s2 diffS12 = s1 - s2 diffS21 = s2 - s1
func Intersect ¶
func Intersect[T comparable](s1, s2 []T) []T
Intersect
To return the intersection between s1 & s2
func RemoveDuplicatedItems ¶
func RemoveDuplicatedItems[T comparable](input []T) []T
func Unique ¶
func Unique[T comparable](slice []T) []T
Unique
To return a duplicate-free version of a slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.