Exemplo n.º 1
0
 public bool Equals(OptionUnsafe <T> other) =>
 IsNone && other.IsNone
         ? true
         : IsSome && other.IsSome
             ? EqualityComparer <T> .Default.Equals(Value, other.Value)
             : false;
Exemplo n.º 2
0
 public static Arr <OptionUnsafe <B> > Sequence <A, B>(this OptionUnsafe <A> ta, Func <A, Arr <B> > f) =>
 ta.Map(f).Sequence();