Returns a new Map where the values are used as values in a map.
Map<R, T> asValues<R>(R Function(T) f) => Map.fromEntries(map((e) => MapEntry(f(e), e)));