示例#1
0
 /// <summary>
 /// Takes a function `f` and returns a function `g` such that if called with the same argumentswhen `f` returns a "truthy" value, `g` returns `false` and when `f` returns a "falsy" value `g` returns `true`.`R.complement` may be applied to any functor
 /// <para />
 /// sig: (*... -> *) -> (*... -> Boolean)
 /// </summary>
 /// <param name="f">first</param>
 /// <returns>Function</returns>
 /// <see cref="R.Not"/>
 public static dynamic Complement(RamdaPlaceholder f = null)
 {
     return(Currying.Complement(f));
 }
示例#2
0
 /// <summary>
 /// Takes a function `f` and returns a function `g` such that if called with the same argumentswhen `f` returns a "truthy" value, `g` returns `false` and when `f` returns a "falsy" value `g` returns `true`.`R.complement` may be applied to any functor
 /// <para />
 /// sig: (*... -> *) -> (*... -> Boolean)
 /// </summary>
 /// <param name="f">first</param>
 /// <returns>Function</returns>
 /// <see cref="R.Not"/>
 public static dynamic Complement(dynamic f)
 {
     return(Currying.Complement(Delegate(f)));
 }
示例#3
0
 /// <summary>
 /// Takes a function `f` and returns a function `g` such that if called with the same argumentswhen `f` returns a "truthy" value, `g` returns `false` and when `f` returns a "falsy" value `g` returns `true`.`R.complement` may be applied to any functor
 /// <para />
 /// sig: (*... -> *) -> (*... -> Boolean)
 /// </summary>
 /// <param name="f">first</param>
 /// <returns>Function</returns>
 /// <see cref="R.Not"/>
 public static dynamic Complement <TSource>(Func <TSource, bool> f)
 {
     return(Currying.Complement(Delegate(f)));
 }