diff --git a/docs/funcs.rst b/docs/funcs.rst index 8c14e12..8a90fa9 100644 --- a/docs/funcs.rst +++ b/docs/funcs.rst @@ -13,7 +13,13 @@ Functions .. function:: caller(*args, **kwargs) - Returns function calling its argument with passed arguments. + Returns function calling its argument with passed arguments:: + + apply_operation_to_values = caller([2,4]) + apply_operation_to_values(sum) + # 6 + apply_operation_to_values(math.prod) + # 8 .. function:: partial(func, *args, **kwargs)