Skip to content

functional

Functions:

Name Description
sequential

Compose functions sequentially.

sequential

sequential(
    *functions: Callable[..., Any],
) -> Callable[..., Any]
sequential(
    *functions: Callable[..., Any],
) -> Callable[..., Any]
sequential(
    *functions: Callable[..., Any],
) -> Callable[..., Any]

Compose functions sequentially.

Parameters:

Name Type Description Default

functions

Callable[..., Any]

The functions to compose. The first function may take any arguments, but the rest must take the output of the previous function.

required

Raises:

Type Description
ValueError

If no functions are passed.

Returns:

Type Description
Callable[..., Any]

A function that composes the given functions.