Documentation ¶
Index ¶
- Variables
- func As(slice []interface{}) (res []uint64, err error)
- func Contains(haystack []uint64, needle uint64) bool
- func ContainsAll(haystack []uint64, needles ...uint64) bool
- func ContainsAny(haystack []uint64, needles ...uint64) bool
- func Cut(slice []uint64, separator uint64) (left, right []uint64, found bool)
- func CutAny(val []uint64, seperators ...uint64) (left, right []uint64, found bool)
- func CutAt(val []uint64, index int) (left, right []uint64)
- func Equal(a []uint64, b []uint64) bool
- func Fill(slice []uint64, val uint64) []uint64
- func Index(haystack []uint64, needle uint64) int
- func Interface(slice []uint64) (res []interface{}, err error)
- func Remove(slice []uint64, offset int, values ...uint64) (res []uint64)
- func RemoveAt(slice []uint64, index int) (res []uint64)
- func Resize(s []uint64, n int) (res []uint64)
- func Sort(s []uint64)
- func SortReverse(s []uint64)
- func Split(slice []uint64, separator uint64) (parts [][]uint64)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInterfaceNotUint64 = errors.New("encountered non-uint64 interface")
)
Functions ¶
func ContainsAll ¶
Check if a []uint64 slice contains ALL of the provided members
func ContainsAny ¶
Check if a []uint64 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.