Exemplo n.º 1
0
 public Closure(Func <T0, TR> func)
 {
     this.userFunc   = func;
     this.funcThunk  = p0 => Help.MakePureThunk(userFunc(p0.GetUserValue()));
     this.isUserFunc = true;
 }
Exemplo n.º 2
0
 public static Thunk <Closure <T0, TR> > MakePureFuncThunk <T0, TR>(FuncThunk <T0, TR> f)
 {
     return(new Closure <T0, TR>(f));
 }
Exemplo n.º 3
0
 public Closure(FuncThunk <T0, TR> funcThunk)
 {
     this.funcThunk = funcThunk;
 }