private static void Test3() { WithMaterializer(m => { var result = Factorials.Select(_ => _.ToString()).RunWith(LineSink(), m); Console.WriteLine(result.Result); }); }
private static void Test2() { WithMaterializer(materializer => { var result = Factorials .Select(num => ByteString.FromString($"{num}\n")) .RunWith(FileIO.ToFile(new FileInfo(@"c:\temp\factorials.txt")), materializer); Console.WriteLine(result.Result); }); }