Пример #1
0
 /// <summary>
 /// Takes a list of predicates and returns a predicate that returns true for agiven list of arguments if every one of the provided predicates is satisfiedby those arguments.The function returned is a curried function whose arity matches that of thehighest-arity predicate.
 /// <para />
 /// sig: [(*... -> Boolean)] -> (*... -> Boolean)
 /// </summary>
 /// <param name="predicates">An array of predicates to check</param>
 /// <returns>The combined predicate</returns>
 /// <see cref="R.AnyPass"/>
 public static dynamic AllPass <TSource>(IList <Func <TSource, bool> > preds)
 {
     return(Currying.AllPass(preds));
 }
Пример #2
0
 /// <summary>
 /// Takes a list of predicates and returns a predicate that returns true for agiven list of arguments if every one of the provided predicates is satisfiedby those arguments.The function returned is a curried function whose arity matches that of thehighest-arity predicate.
 /// <para />
 /// sig: [(*... -> Boolean)] -> (*... -> Boolean)
 /// </summary>
 /// <param name="predicates">An array of predicates to check</param>
 /// <returns>The combined predicate</returns>
 /// <see cref="R.AnyPass"/>
 public static dynamic AllPass(RamdaPlaceholder preds = null)
 {
     return(Currying.AllPass(preds));
 }
Пример #3
0
 /// <summary>
 /// Takes a list of predicates and returns a predicate that returns true for agiven list of arguments if every one of the provided predicates is satisfiedby those arguments.The function returned is a curried function whose arity matches that of thehighest-arity predicate.
 /// <para />
 /// sig: [(*... -> Boolean)] -> (*... -> Boolean)
 /// </summary>
 /// <param name="predicates">An array of predicates to check</param>
 /// <returns>The combined predicate</returns>
 /// <see cref="R.AnyPass"/>
 public static dynamic AllPass(IList <dynamic> preds)
 {
     return(Currying.AllPass(preds));
 }