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