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