Junior — Senior
Printing the return value of any function
livecode
Task condition
Create a decorator that:
- Accepts any function as an argument;
- Executes this function;
- After it completes, outputs the result obtained from the function to the console.
The decorator should work with functions of any signature and not alter their behavior, except for adding the output of the result.