Documentation ¶
Index ¶
- func DedupeInts(sli []int) []int
- func DedupeStrings(sli []string) []string
- func IntersectionStrings(sli1, sli2 []string) []string
- func RemoveAllInts(sli []int, val int) []int
- func RemoveAllStrings(sli []string, val string) []string
- func SpliceInts(sli []int, index int, items int) []int
- func SpliceStrings(sli []string, index int, items int) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DedupeInts ¶
DedupeInts returns a new slice with duplicates removed, maintains original order
func DedupeStrings ¶
DedupeStrings returns a new slice with duplicates removed, maintains original order
func IntersectionStrings ¶
IntersectionStrings returns a slice of values in both argument slices, deduped
func RemoveAllInts ¶
RemoveAllInts returns a new slice with all instances of a given int removed
func RemoveAllStrings ¶
RemoveAllStrings returns a new slice with all instances of a given string removed
func SpliceInts ¶
SpliceInts removes a given number of elements starting at a given index if index + items >= len(sli) it does not throw an error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.