Documentation
¶
Index ¶
- func IntAppendUnique(vs []int, toAdd int) []int
- func IntAppendUniques(vs []int, toAdd []int) []int
- func IntExclude(vs []int, toExclude []int) []int
- func IntInclude(vs []int, t int) bool
- func IntIndex(vs []int, t int) int
- func IntIntercect(v1, v2 []int) []int
- func IntNotIntersect(v1, v2 []int) []int
- func IntSliceToStringSlice(ss []int) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntAppendUnique ¶
IntAppendUnique appends toAdd to the vs int slice if toAdd does not already exist in the slice. It returns the new or unchanged int slice.
func IntAppendUniques ¶
IntAppendUniques appends a slice of int values to the vs int slice. It only appends values that do not already exist in the slice. It returns the new or unchanged int slice.
func IntExclude ¶
IntExclude removes all instances of any value in toExclude from the vs int slice. It returns the new or unchanged int slice.
func IntInclude ¶
IntInclude returns true if the provided int value exists in the provided int slice.
func IntIndex ¶
IntIndex returns the first index of the provided int value in the provided int slice. It returns -1 if it is not found.
func IntIntercect ¶ added in v0.17.0
IntIntercect returns a slice of ints containing values that exist in both provided slices.
func IntNotIntersect ¶ added in v0.17.0
IntNotIntersect returns a slice of ints containing values that do not exist in both provided slices.
func IntSliceToStringSlice ¶
IntSliceToStringSlice converts a slice of ints to a slice of strings.
Types ¶
This section is empty.