Skip to main content

reuse

Reuse the result of a function call with the given arguments.

Signature

def reuse(
func: Callable,
args: Any = None,
kwargs: Any = None
) -> typing.Any

Parameters

NameDescriptionTypeDefault
func (required)The function to reuse.CallableNone
argsVariable length argument list to pass to the function.AnyNone
kwargsArbitrary keyword arguments to pass to the function. Any: The result of the function call.AnyNone

Return Value

typing.Any