AWright18.PipeTo

A C# library for creating a fluent pipline of functions.

View on GitHub

AWright18.PipeTo

What does it do?

PipeTo was created to allow you to pipe the results of a method call or function call to another method or function call. It was Inspired by the F# forward pipe operator that looks like this |>.

Here is a simple example of something you might do with PipeTo.


        static void Main(string[] args)
        {
            "Hello"
                .PipeTo(AddFrom)
                .PipeTo(AddWho, "Awright18.PipeTo")
                .PipeTo(Console.WriteLine);
        }

        static string AddFrom(string s)
        {
            return s + " from";
        }

        static string AddWho(string s, string who)
        {
            return s + " " + who;
        }

How to use it

How to install it

How to build it