Documentation ¶
Index ¶
- func Difference(a, b []string) []string
- func DifferenceRemovedAdded(a, b []string) (removed []string, added []string)
- func DiscardFromSlice[T any](elements []T, isDiscarded func(T) bool) []T
- func Filter(vals []string, cond func(string) bool) []string
- func FindPos(s []string, v string) int
- func GetRandomString(s []string, seed string) string
- func Insert(s []string, pos int, v ...string) []string
- func Remove(s []string, v string) []string
- func SortedEquals(s1, s2 []string) bool
- func UnsortedEquals(s1, s2 []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶
Difference returns the elements in `a` that aren't in `b`.
func DifferenceRemovedAdded ¶
func DiscardFromSlice ¶
func GetRandomString ¶
func Remove ¶
Remove reuses provided slice capacity. Provided s slice should not be used after without reassigning to the func return!
func SortedEquals ¶
func UnsortedEquals ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.