Esempio n. 1
0
 public static void EmptyEnumerable() =>
 Assert.Some(Enumerable.Empty <int>(), Maybe.EmptyEnumerable <int>());
Esempio n. 2
0
 public static Maybe <IEnumerable <T> > EmptyIfNone <T>(
     this Maybe <IEnumerable <T> > @this)
 {
     return(@this.OrElse(Maybe.EmptyEnumerable <T>()));
 }