Documentation ¶
Index ¶
- func AddUnique(s []string, values ...string) []string
- func Contains(s []string, value string) bool
- func ContainsAll(s1 []string, s2 []string) bool
- func Equal[T comparable](value1 []T, value2 []T) bool
- func Filter[T any](original []T, keep func(T) bool) []T
- func Identical(s1 []string, s2 []string) bool
- func Map[T1 any, T2 any](source []T1, delta func(T1) T2) []T2
- func Remove(s []string, value string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUnique ¶ added in v0.2.0
AddUnique expects a sorted slice of strings. It returns a new slice that contains the unique value. If the value already exists in the slice, then an identical slice is returned.
func Contains ¶ added in v0.2.0
Contains returns TRUE if this StringSlice contains the provided value
func ContainsAll ¶ added in v0.2.0
ContainsAll returns TRUE if s1 contains every value in s2
func Equal ¶ added in v0.5.1
func Equal[T comparable](value1 []T, value2 []T) bool
Equal returns true if the two slices are identical, having the same items in the same order, with no alterations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.