Documentation
¶
Index ¶
- Variables
- func As(slice []interface{}) (res []int, err error)
- func Contains(haystack []int, needle int) bool
- func ContainsAll(haystack []int, needles ...int) bool
- func ContainsAny(haystack []int, needles ...int) bool
- func Cut(slice []int, separator int) (left, right []int, found bool)
- func CutAny(val []int, seperators ...int) (left, right []int, found bool)
- func Equal(a []int, b []int) bool
- func Index(haystack []int, needle int) int
- func Interface(slice []int) (res []interface{}, err error)
- func Split(slice []int, separator int) (parts [][]int)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInterfaceNotInt = errors.New("encountered non-int interface")
)
Functions ¶
func ContainsAll ¶
Check if a []int slice contains ALL of the provided members
func ContainsAny ¶
Check if a []int slice contains ANY of the provided members
func Index ¶
Find the index where the needle appears. Returns -1 if the needle doesn't appear in the slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.