Documentation ¶
Index ¶
- func Average[T Number](slice []T) T
- func Concat[T any](s ...[]T) []T
- func Filter[T, V any](slice []T, filter func(T) V) []V
- func Intersection[T comparable](arrays ...[]T) []T
- func IsSubset[T comparable](subset, superset []T) bool
- func Max[T constraints.Ordered](s []T) (m T)
- func Min[T constraints.Ordered](s []T) (m T)
- func Slice[T any](v ...T) []T
- func UnorderedEqual[T comparable](slices ...[]T) bool
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Intersection ¶
func Intersection[T comparable](arrays ...[]T) []T
func IsSubset ¶
func IsSubset[T comparable](subset, superset []T) bool
func Max ¶
func Max[T constraints.Ordered](s []T) (m T)
func Min ¶
func Min[T constraints.Ordered](s []T) (m T)
func UnorderedEqual ¶
func UnorderedEqual[T comparable](slices ...[]T) bool
Types ¶
type Number ¶
type Number interface { constraints.Float | constraints.Integer }
Click to show internal directories.
Click to hide internal directories.