示例#1
0
        // LINQ

        public static Option <R> Select <T, R>(this Option <T> @this, Func <T, R> func)
        => @this.Map(func);
示例#2
0
 public static Option <Func <T2, T3, R> > Map <T1, T2, T3, R>
     (this Option <T1> @this, Func <T1, T2, T3, R> func)
 => @this.Map(func.CurryFirst());
示例#3
0
 public static Option <Func <T2, R> > Apply <T1, T2, R>
     (this Option <Func <T1, T2, R> > @this, Option <T1> arg)
 => Apply(@this.Map(F.Curry), arg);
示例#4
0
 public static Option <Unit> ForEach <T>(this Option <T> t, Action <T> action) =>
 t.Map(action.ToFunc());
 public static Option <TResult> Select <TValue, TResult>(this Option <TValue> option, Func <TValue, TResult> map)
 => option.Map(map);