public static IPossible <TConcrete> ToPossible <TConcrete>(
     this TConcrete value, Func <TConcrete, bool> hasValueDeterminator = null
     ) => Possible.From(value, hasValueDeterminator);
Esempio n. 2
0
 public override IPossible <TResult> Map <TResult>(Func <TConcrete, TResult> mapping)
 => Possible.NoValue <TResult>();
Esempio n. 3
0
 public static IPossible <TConcrete> FirstOrNoValue <TConcrete>(
     this IEnumerable <TConcrete> sequence
     ) => sequence != null
     ? sequence.FirstOrDefault().ToPossible()
     : Possible.NoValue <TConcrete>();