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()); };
public static Func <double, Func <string, string> > MakerMapper(ProjectorFactory facX) => x => double.IsNaN(x) ? facX.MakeDefault() : facX.Make(x);