Esempio n. 1
0
		/// <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));
		}
Esempio n. 2
0
 /// <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)));
 }
Esempio n. 3
0
		/// <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);
		}
Esempio n. 4
0
		/// <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));
		}
Esempio n. 5
0
		/// <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);
		}
Esempio n. 6
0
		/// <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));
		}
Esempio n. 7
0
		/// <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);
		}