Decorate a provided function such that the function's return value is provided as an argument to another function.