/// <summary> /// Checks for existence of a key in the map /// </summary> /// <param name="key">Key to check</param> /// <returns>True if an item with the key supplied is in the map</returns> public static bool contains <K, V>(Map <K, V> map, Tuple <K, V> kv) => map.Contains(kv.Item1, kv.Item2);
/// <summary> /// Checks for existence of a key in the map /// </summary> /// <param name="key">Key to check</param> /// <returns>True if an item with the key supplied is in the map</returns> public static bool contains <K, V>(Map <K, V> map, KeyValuePair <K, V> kv) => map.Contains(kv.Key, kv.Value);