No description
Find a file
2025-06-16 10:13:35 +02:00
Pipe initial 2025-06-16 10:02:51 +02:00
.gitignore initial 2025-06-16 10:02:51 +02:00
LICENSE add copy of LICENSE to top level 2025-06-16 10:13:35 +02:00
Pipe.sln initial 2025-06-16 10:02:51 +02:00
readme.md add copy of the readme to top level 2025-06-16 10:11:52 +02:00

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);