Documentation ¶
Index ¶
- func EarliestTimestamp[E any](items []E, f func(E) *timestamppb.Timestamp) *timestamppb.Timestamp
- func LatestTimestamp[E any](items []E, f func(E) *timestamppb.Timestamp) *timestamppb.Timestamp
- func Max[N Number, E any](items []E, f func(E) (N, bool)) (N, bool)
- func Mean[N Number, E any](items []E, f func(E) (N, bool)) (N, bool)
- func Mode[N Number, E any](items []E, f func(E) (N, bool)) (N, bool)
- func Ptr[T any](v T, ok bool) *T
- func Sum[N Number, E any](items []E, f func(E) (N, bool)) (N, bool)
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EarliestTimestamp ¶
func EarliestTimestamp[E any](items []E, f func(E) *timestamppb.Timestamp) *timestamppb.Timestamp
func LatestTimestamp ¶
func LatestTimestamp[E any](items []E, f func(E) *timestamppb.Timestamp) *timestamppb.Timestamp
Types ¶
type Number ¶
type Number interface { constraints.Float | constraints.Integer }
Click to show internal directories.
Click to hide internal directories.