import type { Reducer } from "./api.js" ; import { reduce , reducer } from "./reduce.js" ; /**
 * Reducer to compute successive division of values using given `init`
 * value.
 */ export function div ( init ) ; export function div ( init , xs ) ; export function div ( init , xs ? ) { return xs ? reduce ( div ( init ) , xs ) : reducer ( ( ) => init , ( acc , x ) => acc / x ) ; }