示例#1
0
 /**
  * Runs the given computation with the given initial argument and returns
  * its final answer.
  *
  * @param c the computation to run.
  * @param initArg the initial argument to the computation.
  */
 public IResut Run(Computation c, Object initArg)
 {
     return c.Apply(initArg);
 }
示例#2
0
文件: Monad.cs 项目: maxisam/csharp
 /**
  * Runs the given computation with the given initial argument and returns
  * its final answer.
  *
  * @param c the computation to run.
  * @param initArg the initial argument to the computation.
  */
 public IResut Run(Computation c, Object initArg)
 {
     return(c.Apply(initArg));
 }
示例#3
0
 /**
  * Runs the given computation and returns its final answer.
  *
  * @param c the computation to run.
  * @return the final answer.
  */
 public IResut Run(Computation c)
 {
     return c.Apply();
 }
示例#4
0
文件: Monad.cs 项目: maxisam/csharp
 /**
  * Runs the given computation and returns its final answer.
  *
  * @param c the computation to run.
  * @return the final answer.
  */
 public IResut Run(Computation c)
 {
     return(c.Apply());
 }