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