import type { Reducer } from "./api.js" ; import { __mathop } from "./internal/mathop.js" ; /**
 * Reducer to successively subtract values from optional `init` value
 * (default: 0).
 */ export function sub ( init ? ) ; export function sub ( xs ) ; export function sub ( init , xs ) ; export function sub ( ... args ) { return __mathop ( sub , ( acc , x ) => acc - x , 0 , args ) ; }