import { Collection } from "https://deno.land/x/revoltio@v1.0.0/src/lib.ts";
Maps each item to another value into a collection. Identical in behavior to Array.map().
Examples
collection.mapValues(user => user.tag);
collection.mapValues(user => user.tag);
Parameters
fn: () => T
value: V,
key: K,
collection: this,
Function that produces an element of the new collection, taking three arguments
Returns
Collection<K, T>