Make lambdas and functions invoked with the same code.