Esempio n. 1
0
 public static ProblemQualified <T> Success(T t, IEnumerable <string> nonTerminalWarnings) => new ProblemQualified <T>(Either <Array1 <string>, T> .FromRight(t), nonTerminalWarnings);
Esempio n. 2
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))))));
Esempio n. 3
0
 public static ProblemQualified <T> Success(T t) => new ProblemQualified <T>(Either <Array1 <string>, T> .FromRight(t), Enumerable.Empty <string>());
Esempio n. 4
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)));