import { reduce } from "https://deno.land/x/fun@v2.0.0-alpha.6/record.ts";
Collect all of the A values in a ReadonlyRecord into a single O value by the process of reduction. The order of key/value pairs in this reduction are stable and determined by ecmascript standard here.
Examples
Example 1
Example 1
import * as R from "./record.ts";
import { pipe } from "./fn.ts";
const result = pipe(
{ one: 1, two: 2 },
R.reduce((sum, value) => sum + value, 0),
); // 3