mirror of
https://github.com/nnuuvv/Pipe.git
synced 2025-08-28 19:06:13 +02:00
No description
Pipe | ||
.gitignore | ||
LICENSE | ||
Pipe.sln | ||
readme.md |
nuv.Pipe
Pipelining similar to |> from F# / Gleam in C#
Usage
var someString = "some string";
someString.Into(x => Console.WriteLine("The string is: " + x));
someString
.Into(x => x.Length)
.Into(x => "The strings length is: " + x)
.Into(Console.WriteLine);
// Including async/task support
var task = Task.Run(() => "Something");
var result = await task
.AwaitInto(x => x.Length)
.AwaitInto(x => "The Task's string length is: " + x)
.AwaitInto(Console.WriteLine);