示例#1
0
 /// <summary>
 /// A function wrapping calls to the two functions in an `||` operation,returning the result of the first function if it is truth-y and the resultof the second function otherwise. Note that this is short-circuited,meaning that the second function will not be invoked if the first returns atruth-y value.In addition to functions, `R.either` also accepts any fantasy-land compatibleapplicative functor.
 /// <para />
 /// sig: (*... -> Boolean) -> (*... -> Boolean) -> (*... -> Boolean)
 /// </summary>
 /// <param name="f">a predicate</param>
 /// <param name="g">another predicate</param>
 /// <returns>a function that applies its arguments to `f` and `g` and `||`s their outputs together.</returns>
 /// <see cref="R.Or"/>
 public static dynamic Either <TSource>(dynamic f, Func <TSource, bool> g)
 {
     return(Currying.Either(Delegate(f), Delegate(g)));
 }
示例#2
0
 /// <summary>
 /// A function wrapping calls to the two functions in an `||` operation,returning the result of the first function if it is truth-y and the resultof the second function otherwise. Note that this is short-circuited,meaning that the second function will not be invoked if the first returns atruth-y value.In addition to functions, `R.either` also accepts any fantasy-land compatibleapplicative functor.
 /// <para />
 /// sig: (*... -> Boolean) -> (*... -> Boolean) -> (*... -> Boolean)
 /// </summary>
 /// <param name="f">a predicate</param>
 /// <param name="g">another predicate</param>
 /// <returns>a function that applies its arguments to `f` and `g` and `||`s their outputs together.</returns>
 /// <see cref="R.Or"/>
 public static dynamic Either(dynamic f, dynamic g)
 {
     return(Currying.Either(Delegate(f), Delegate(g)));
 }
示例#3
0
 /// <summary>
 /// A function wrapping calls to the two functions in an `||` operation,returning the result of the first function if it is truth-y and the resultof the second function otherwise. Note that this is short-circuited,meaning that the second function will not be invoked if the first returns atruth-y value.In addition to functions, `R.either` also accepts any fantasy-land compatibleapplicative functor.
 /// <para />
 /// sig: (*... -> Boolean) -> (*... -> Boolean) -> (*... -> Boolean)
 /// </summary>
 /// <param name="f">a predicate</param>
 /// <param name="g">another predicate</param>
 /// <returns>a function that applies its arguments to `f` and `g` and `||`s their outputs together.</returns>
 /// <see cref="R.Or"/>
 public static dynamic Either(dynamic f, RamdaPlaceholder g = null)
 {
     return(Currying.Either(Delegate(f), g));
 }
示例#4
0
 /// <summary>
 /// A function wrapping calls to the two functions in an `||` operation,returning the result of the first function if it is truth-y and the resultof the second function otherwise. Note that this is short-circuited,meaning that the second function will not be invoked if the first returns atruth-y value.In addition to functions, `R.either` also accepts any fantasy-land compatibleapplicative functor.
 /// <para />
 /// sig: (*... -> Boolean) -> (*... -> Boolean) -> (*... -> Boolean)
 /// </summary>
 /// <param name="f">a predicate</param>
 /// <param name="g">another predicate</param>
 /// <returns>a function that applies its arguments to `f` and `g` and `||`s their outputs together.</returns>
 /// <see cref="R.Or"/>
 public static dynamic Either(RamdaPlaceholder f, dynamic g)
 {
     return(Currying.Either(f, Delegate(g)));
 }
示例#5
0
 /// <summary>
 /// A function wrapping calls to the two functions in an `||` operation,returning the result of the first function if it is truth-y and the resultof the second function otherwise. Note that this is short-circuited,meaning that the second function will not be invoked if the first returns atruth-y value.In addition to functions, `R.either` also accepts any fantasy-land compatibleapplicative functor.
 /// <para />
 /// sig: (*... -> Boolean) -> (*... -> Boolean) -> (*... -> Boolean)
 /// </summary>
 /// <param name="f">a predicate</param>
 /// <param name="g">another predicate</param>
 /// <returns>a function that applies its arguments to `f` and `g` and `||`s their outputs together.</returns>
 /// <see cref="R.Or"/>
 public static dynamic Either <TSource>(Func <TSource, bool> f, RamdaPlaceholder g = null)
 {
     return(Currying.Either(Delegate(f), g));
 }
示例#6
0
 /// <summary>
 /// A function wrapping calls to the two functions in an `||` operation,returning the result of the first function if it is truth-y and the resultof the second function otherwise. Note that this is short-circuited,meaning that the second function will not be invoked if the first returns atruth-y value.In addition to functions, `R.either` also accepts any fantasy-land compatibleapplicative functor.
 /// <para />
 /// sig: (*... -> Boolean) -> (*... -> Boolean) -> (*... -> Boolean)
 /// </summary>
 /// <param name="f">a predicate</param>
 /// <param name="g">another predicate</param>
 /// <returns>a function that applies its arguments to `f` and `g` and `||`s their outputs together.</returns>
 /// <see cref="R.Or"/>
 public static dynamic Either <TSource>(RamdaPlaceholder f, Func <TSource, bool> g)
 {
     return(Currying.Either(f, Delegate(g)));
 }
示例#7
0
 /// <summary>
 /// A function wrapping calls to the two functions in an `||` operation,returning the result of the first function if it is truth-y and the resultof the second function otherwise. Note that this is short-circuited,meaning that the second function will not be invoked if the first returns atruth-y value.In addition to functions, `R.either` also accepts any fantasy-land compatibleapplicative functor.
 /// <para />
 /// sig: (*... -> Boolean) -> (*... -> Boolean) -> (*... -> Boolean)
 /// </summary>
 /// <param name="f">a predicate</param>
 /// <param name="g">another predicate</param>
 /// <returns>a function that applies its arguments to `f` and `g` and `||`s their outputs together.</returns>
 /// <see cref="R.Or"/>
 public static dynamic Either(RamdaPlaceholder f = null, RamdaPlaceholder g = null)
 {
     return(Currying.Either(f, g));
 }