Exemplo n.º 1
0
 public static Option <Game <T> > GetGame <T, U>(this MoveResult <T, U> result)
 {
     return(result.Fold(game => Option.Some(game), _ => Option.None <Game <T> >()));
 }
Exemplo n.º 2
0
 public static Option <Game <U> > GetWin <T, U>(this MoveResult <T, U> result)
 {
     return(result.Fold(_ => Option.None <Game <U> >(), win => Option.Some(win)));
 }