/// <summary> /// Return true if *any* items in the map return true when the predicate is applied /// </summary> /// <param name="pred">Predicate</param> /// <returns>True if all items in the map return true when the predicate is applied</returns> public static bool exists <K, V>(Map <K, V> map, Func <KeyValuePair <K, V>, bool> pred) => map.Exists(pred);
/// <summary> /// Return true if *any* items in the map return true when the predicate is applied /// </summary> /// <param name="pred">Predicate</param> /// <returns>True if all items in the map return true when the predicate is applied</returns> public static bool exists <K, V>(Map <K, V> map, Func <V, bool> pred) => map.Exists(pred);
public static bool Exists <A, B, C, D, T>(this Map <A, Map <B, Map <C, Map <D, T> > > > self, Func <T, bool> pred) { return(self.Exists((k, v) => v.Exists(pred))); }