import type { Reducer } from "./api.js" ; import { reduce , reducer } from "./reduce.js" ; export function min ( ) ; export function min ( xs ) ; export function min ( xs ? ) { return xs ? reduce ( min ( ) , xs ) : reducer ( ( ) => Infinity , ( acc , x ) => Math . min ( acc , x ) ) ; }