def function_composer(*args): return reduce(lambda f, g: lambda x: f(g(x)), args)
https://www.jianshu.com/p/59cab3bbd4e6