Пример #1
0
 public static Func <double, double, Func <string, string> > MakerZipper(ProjectorFactory facX, ProjectorFactory facY) =>
 (x, y) => {
     if (!double.IsNaN(x))
     {
         return(facX.Make(x));
     }
     if (!double.IsNaN(y))
     {
         return(facY.Make(y));
     }
     return(facX.MakeDefault());
 };
Пример #2
0
 public static Func <double, Func <string, string> > MakerMapper(ProjectorFactory facX) =>
 x => double.IsNaN(x) ? facX.MakeDefault() : facX.Make(x);