Documentation
¶
Overview ¶
Package intslice provides a few helper functions for dealing with []int.
Index ¶
- func Common(a, b []int) []int
- func Contains(list []int, a int) bool
- func Difference(a, b []int) []int
- func Max(list []int) int
- func Min(list []int) int
- func NotCommon(a, b []int) []int
- func RemoveDuplicates(options *[]int, otherStringsToClean ...int)
- func Sum(list []int) int
- func ToStringSlice(in []int) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶ added in v0.39.0
func RemoveDuplicates ¶ added in v0.39.2
RemoveDuplicates in []int.
func ToStringSlice ¶
ToStringSlice transforms an []int to a []string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.