import { Collection } from "https://deno.land/x/collection@v1.0.1/src/Collection.ts";
Applies a function to produce a single value. Identical in behavior to Array.reduce().
Examples
collection.reduce((acc, guild) => acc + guild.memberCount, 0);
collection.reduce((acc, guild) => acc + guild.memberCount, 0);