In the latest version of C#, can I do something like Haskell's function composition? more...?
Function composition is the act of pipelining the result of one function, to the input of another, creating an entirely new function.
I feel like linq is the closest but that's chaining, not function composition, right?
I did not let the compiler check this, but this should be possible:
public static Func<T3,T1> my_chain<T1, T2, T3>(Func<T2,T1> f1, Func<T3,T2> f2)
{
return x => f2(f1(x));
}