예제 #1
0
파일: Monad.cs 프로젝트: BoykoDmitry/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);
 }
예제 #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
파일: Monad.cs 프로젝트: BoykoDmitry/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();
 }
예제 #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());
 }