/// <summary> /// A function which calls the two provided functions and returns the `<![CDATA[&&]]>`of the results.It returns the result of the first function if it is false-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 afalse-y value.In addition to functions, `R.both` 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 `<![CDATA[&&]]>`s their outputs together.</returns> /// <see cref="R.And"/> public static dynamic Both<TSource>(dynamic f, Func<TSource, bool> g) { return Currying.Both(Delegate(f), Delegate(g)); }
/// <summary> /// A function which calls the two provided functions and returns the `<![CDATA[&&]]>`of the results.It returns the result of the first function if it is false-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 afalse-y value.In addition to functions, `R.both` 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 `<![CDATA[&&]]>`s their outputs together.</returns> /// <see cref="R.And"/> public static dynamic Both(dynamic f, dynamic g) { return(Currying.Both(Delegate(f), Delegate(g))); }
/// <summary> /// A function which calls the two provided functions and returns the `<![CDATA[&&]]>`of the results.It returns the result of the first function if it is false-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 afalse-y value.In addition to functions, `R.both` 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 `<![CDATA[&&]]>`s their outputs together.</returns> /// <see cref="R.And"/> public static dynamic Both(dynamic f, RamdaPlaceholder g = null) { return Currying.Both(Delegate(f), g); }
/// <summary> /// A function which calls the two provided functions and returns the `<![CDATA[&&]]>`of the results.It returns the result of the first function if it is false-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 afalse-y value.In addition to functions, `R.both` 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 `<![CDATA[&&]]>`s their outputs together.</returns> /// <see cref="R.And"/> public static dynamic Both(RamdaPlaceholder f, dynamic g) { return Currying.Both(f, Delegate(g)); }
/// <summary> /// A function which calls the two provided functions and returns the `<![CDATA[&&]]>`of the results.It returns the result of the first function if it is false-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 afalse-y value.In addition to functions, `R.both` 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 `<![CDATA[&&]]>`s their outputs together.</returns> /// <see cref="R.And"/> public static dynamic Both<TSource>(Func<TSource, bool> f, RamdaPlaceholder g = null) { return Currying.Both(Delegate(f), g); }
/// <summary> /// A function which calls the two provided functions and returns the `<![CDATA[&&]]>`of the results.It returns the result of the first function if it is false-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 afalse-y value.In addition to functions, `R.both` 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 `<![CDATA[&&]]>`s their outputs together.</returns> /// <see cref="R.And"/> public static dynamic Both<TSource>(RamdaPlaceholder f, Func<TSource, bool> g) { return Currying.Both(f, Delegate(g)); }
/// <summary> /// A function which calls the two provided functions and returns the `<![CDATA[&&]]>`of the results.It returns the result of the first function if it is false-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 afalse-y value.In addition to functions, `R.both` 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 `<![CDATA[&&]]>`s their outputs together.</returns> /// <see cref="R.And"/> public static dynamic Both(RamdaPlaceholder f = null, RamdaPlaceholder g = null) { return Currying.Both(f, g); }