merge

package
v0.2024.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

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

func Max

func Max[N Number, E any](items []E, f func(E) (N, bool)) (N, bool)

func Mean

func Mean[N Number, E any](items []E, f func(E) (N, bool)) (N, bool)

func Mode

func Mode[N Number, E any](items []E, f func(E) (N, bool)) (N, bool)

func Ptr

func Ptr[T any](v T, ok bool) *T

func Sum

func Sum[N Number, E any](items []E, f func(E) (N, bool)) (N, bool)

Types

type Number

type Number interface {
	constraints.Float | constraints.Integer
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL