Documentation ¶
Index ¶
- func Count[T any, S ~[]T](s S, pred func(v T) bool) int
- func Every[T any, S ~[]T](s S, pred func(v T) bool) bool
- func FieldsToInt64(input string) []int64
- func Filter[T any, S ~[]T](s S, pred func(v T) bool) S
- func Map[T any, R any, S ~[]T](s S, pred func(v T) R) []R
- func Max[T constraints.Integer](s []T) T
- func Min[T constraints.Integer](s []T) T
- func Product[T constraints.Integer](s []T) T
- func Reduce[T any, R any, S ~[]T](s S, pred func(v T, prev R) R, init R) R
- func Split[T any, S ~[]T](s S, pred func(v T) bool) []S
- func Sum[T constraints.Integer](s []T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldsToInt64 ¶
func Max ¶
func Max[T constraints.Integer](s []T) T
func Min ¶
func Min[T constraints.Integer](s []T) T
func Product ¶
func Product[T constraints.Integer](s []T) T
func Sum ¶
func Sum[T constraints.Integer](s []T) T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.