import { mapValues } from "./map_values.ts";
export function reduceGroups(record, reducer, initialValue) {
    return mapValues(record, (it) => it.reduce(reducer, initialValue));
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVkdWNlX2dyb3Vwcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInJlZHVjZV9ncm91cHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR0EsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBcUI1QyxNQUFNLFVBQVUsWUFBWSxDQUMxQixNQUEwQyxFQUMxQyxPQUEwQyxFQUMxQyxZQUFlO0lBRWYsT0FBTyxTQUFTLENBQUMsTUFBTSxFQUFFLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxFQUFFLENBQUMsTUFBTSxDQUFDLE9BQU8sRUFBRSxZQUFZLENBQUMsQ0FBQyxDQUFDO0FBQ3JFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBDb3B5cmlnaHQgMjAxOC0yMDIxIHRoZSBEZW5vIGF1dGhvcnMuIEFsbCByaWdodHMgcmVzZXJ2ZWQuIE1JVCBsaWNlbnNlLlxuLy8gVGhpcyBtb2R1bGUgaXMgYnJvd3NlciBjb21wYXRpYmxlLlxuXG5pbXBvcnQgeyBtYXBWYWx1ZXMgfSBmcm9tIFwiLi9tYXBfdmFsdWVzLnRzXCI7XG5cbi8qKlxuICogQXBwbGllcyB0aGUgZ2l2ZW4gcmVkdWNlciB0byBlYWNoIGdyb3VwIGluIHRoZSBnaXZlbiBHcm91cGluZywgcmV0dXJuaW5nIHRoZSByZXN1bHRzIHRvZ2V0aGVyIHdpdGggdGhlIHJlc3BlY3RpdmUgZ3JvdXAga2V5c1xuICpcbiAqIGBgYHRzXG4gKiBpbXBvcnQgeyByZWR1Y2VHcm91cHMgfSBmcm9tIFwiaHR0cHM6Ly9kZW5vLmxhbmQvc3RkQC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