Exemplo n.º 1
0
 /// <summary>
 /// Match the two states of the OptionAsync
 /// </summary>
 /// <param name="Some">Some match operation</param>
 /// <param name="None">None match operation</param>
 public static Task <Unit> match <T>(OptionAsync <T> ma, Action <T> Some, Action None) =>
 ma.Match(Some, None);
Exemplo n.º 2
0
 public static Task <R> match <T, R>(OptionAsync <T> ma, Func <T, Task <R> > Some, Func <Task <R> > None) =>
 ma.Match(Some, None);