Пример #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
 /**
  * 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
 /**
  * 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());
 }