sparse-intern-71089
01/16/2020, 6:13 PMpowerful-football-81694
01/16/2020, 6:21 PMInput
I suppose I could call String.Format()
inside an .Apply()
on that input.powerful-football-81694
01/16/2020, 6:22 PMInput
that each correspond to a placeholder in the composite format string.white-balloon-205
.Apply
. And if you have multiple inputs .All().Apply()
. Other things (like Output.Format
) are effectively all just sugar for common cases - but if your case falls outside of those - you want .Apply
and maybe .All
.powerful-football-81694
01/16/2020, 8:48 PMtall-librarian-49374
01/16/2020, 8:51 PMvar a = Output.Create("a");
var b = Output.Create("b");
var c = "{0}+{1}";
var d = Output.All<string>(a, b).Apply(vs => string.Format(c, vs.ToArray()));
tall-librarian-49374
01/16/2020, 8:51 PMpowerful-football-81694
01/16/2020, 8:52 PM