florin.compose¶
Deferred function composition with functools.
Functions¶
- compose
- Compose a chain of functions on an initial input.
Functions
compose (\*functions) |
Compose a chain of functions on an initial input. |
-
florin.compose.
compose
(*functions)[source]¶ Compose a chain of functions on an initial input.
Applies a sequence of functions in order to some initial data, performing a reduce over the entire function chain.
Parameters: functions (list of callable) – The functions to execute. List contents may be any callable, including functools.partial objects to enable parameterizing deferred functions. Returns: Return type: A partial function to be applied to data at a later time.