第十章 管道和组合

public static T Pipe<T>(this T source, params Func<T, T>[] funcs)
{
return funcs.Aggregate(source, (current, func) => func(current));
}