Documentation ¶
Index ¶
- func AnyToString(slice []any) []string
- func Contains[T comparable](b []T, e T) bool
- func DeleteFrom[T comparable](collection []T, el T) []T
- func DiffOneWay(a, b []string) []string
- func DiffString(slice1 []string, slice2 []string) []string
- func Difference[T comparable](a []T, b []T) []T
- func FindIndex[T comparable](collection []T, el T) int
- func IntersectSlices[T comparable](a []T, b []T) []T
- func ToAnyList[T any](input []T) []any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyToString ¶
func Contains ¶
func Contains[T comparable](b []T, e T) bool
func DeleteFrom ¶
func DeleteFrom[T comparable](collection []T, el T) []T
func DiffOneWay ¶
DiffOneWay returns the elements in `a` that aren't in `b`.
func DiffString ¶
func Difference ¶
func Difference[T comparable](a []T, b []T) []T
func FindIndex ¶
func FindIndex[T comparable](collection []T, el T) int
func IntersectSlices ¶
func IntersectSlices[T comparable](a []T, b []T) []T
IntersectSlices has complexity: O(n^2)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.