コード例 #1
0
 private DrawnResult(Either <TFinalValue, Draw> outcomeOrDrawNeeded)
 {
     mOutcomeOrDrawNeeded = outcomeOrDrawNeeded;
 }
コード例 #2
0
 public static DrawnResult <TFinalValue, TDrawInput, TDrawResult> Create(TDrawInput drawInput, Func <TDrawResult, DrawnResult <TFinalValue, TDrawInput, TDrawResult> > getOutcomeFromDraw) =>
 new DrawnResult <TFinalValue, TDrawInput, TDrawResult>(Either <TFinalValue, Draw> .FromRight(new Draw(drawInput, getOutcomeFromDraw)));
コード例 #3
0
 public static DrawnResult <TFinalValue, TDrawInput, TDrawResult> CreateToSingle(TDrawInput drawInput, Func <TDrawResult, TFinalValue> getKnownFromDraw) =>
 new DrawnResult <TFinalValue, TDrawInput, TDrawResult>(Either <TFinalValue, Draw> .FromRight(new Draw(drawInput, new Func <TDrawResult, DrawnResult <TFinalValue, TDrawInput, TDrawResult> >(w => Return(getKnownFromDraw(w))))));
コード例 #4
0
 public static DrawnResult <TFinalValue, TDrawInput, TDrawResult> Return(TFinalValue t) => new DrawnResult <TFinalValue, TDrawInput, TDrawResult>(Either <TFinalValue, Draw> .FromLeft(t));