Documentation ¶
Index ¶
- Variables
- func As(slice []interface{}) (res []int64, err error)
- func Contains(haystack []int64, needle int64) bool
- func ContainsAll(haystack []int64, needles ...int64) bool
- func ContainsAny(haystack []int64, needles ...int64) bool
- func Cut(slice []int64, separator int64) (left, right []int64, found bool)
- func CutAny(val []int64, seperators ...int64) (left, right []int64, found bool)
- func CutAt(val []int64, index int) (left, right []int64)
- func Equal(a []int64, b []int64) bool
- func Fill(slice []int64, val int64) []int64
- func Index(haystack []int64, needle int64) int
- func Interface(slice []int64) (res []interface{}, err error)
- func Remove(slice []int64, offset int, values ...int64) (res []int64)
- func RemoveAt(slice []int64, index int) (res []int64)
- func Resize(s []int64, n int) (res []int64)
- func Sort(s []int64)
- func SortReverse(s []int64)
- func Split(slice []int64, separator int64) (parts [][]int64)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInterfaceNotInt64 = errors.New("encountered non-int64 interface")
)
Functions ¶
func ContainsAll ¶
Check if a []int64 slice contains ALL of the provided members
func ContainsAny ¶
Check if a []int64 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.
func Remove ¶ added in v0.5.10
Remove the first occurrence of each value from the slice starting from the supplied offset
func RemoveAt ¶ added in v0.5.10
Remove the item at the index while preserving the order of the items TODO: maybe change this to take multiple indices and to remove them at the same time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.