import { collect } from "https://deno.land/x/fun@v2.0.0-alpha.10/record.ts";
Collect all values in a ReadonlyRecord into a single value I by using a Monoid and a mapping function from A to I. This is effectively reduce using a Monoid for the initial value.
Returns
<A>(fai: (a: A, index: string) => I) => (ua: ReadonlyRecord<A>) => I