Syntactic sugar for defining lambda functions with explicit scope.