• Flips a map so that the keys become the values and the values become the keys.

    Type Parameters

    • K
    • V

    Parameters

    • map: ReadonlyMap<K, V>

    Returns Map<V, K>

    Returns a new map.