Metakit / @doeixd/metakit/aggregates
max
function · packages/metakit/src/aggregates.ts:382
function max<S extends Schema.Top>(
rowSchema: S,
build: (
$: PathAccessor<S['Type'], S['Type']>,
) => ExprInput<S['Type'], number | null>,
): Max<S['Type']>Semilattice aggregate: the largest non-null value (Option.none() when
there is none), refused non-finite where a value is NaN or an infinity.