Beispiel #1
0
 /// <summary>
 /// Returns a function that always returns the given value. Note that fornon-primitives the value returned is a reference to the original value.This function is known as `const`, `constant`, or `K` (for K combinator) inother languages and libraries.
 /// <para />
 /// sig: a -> (* -> a)
 /// </summary>
 /// <param name="val">The value to wrap in a function</param>
 /// <returns>A Function :: * -<![CDATA[>]]> val.</returns>
 public static dynamic Always(RamdaPlaceholder val = null)
 {
     return(Currying.Always(val));
 }
Beispiel #2
0
 /// <summary>
 /// Returns a function that always returns the given value. Note that fornon-primitives the value returned is a reference to the original value.This function is known as `const`, `constant`, or `K` (for K combinator) inother languages and libraries.
 /// <para />
 /// sig: a -> (* -> a)
 /// </summary>
 /// <param name="val">The value to wrap in a function</param>
 /// <returns>A Function :: * -<![CDATA[>]]> val.</returns>
 public static dynamic Always <TTarget>(TTarget val)
 {
     return(Currying.Always(val));
 }