Documentation ¶
Index ¶
- func Average[T generic.Numeric](xs []T, precision ...int) float64
- func Deduplication[E comparable](s []E) []E
- func Filter[E any, S ~[]E](s S, pred func(E) bool) S
- func Max[T cmp.Ordered](xs ...T) (y T)
- func Merge[E any](s []E, ss ...[]E) []E
- func Min[T cmp.Ordered](xs ...T) (y T)
- func ToString[T any](xs []T, sep string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deduplication ¶
func Deduplication[E comparable](s []E) []E
Deduplication removes repeatable elements from s.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.