lisa.utils.compose#
- lisa.utils.compose(*fs)[source]#
Compose multiple functions such that
compose(f, g)(x) == g(f(x))
.Note
This handles well functions with arity higher than 1, as if they were curried. The functions will consume the number of parameters they need out of the parameters passed to the composed function. Innermost functions are served first.