Skip to content

awright18/AWright18.PipeTo

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published