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