#3 @
zhy0216 可以吧
https://pythonsimplified.com/everything-you-need-to-know-about-python-lambda-functions/> Another way you can invoke the Lambda function is through Immediately Invoked Function Expression (IIFE). However, this is not a recommended use of calling lambda expression. You don’t see this method being used anywhere. I have mentioned this for informational purposes only.
> >>> print((lambda x: x**2)(5))
> 25
https://elfi-y.medium.com/python-lambda-%CE%BB-6c62a5427913> We can invoke them directly in Immediately Invoked Function Expressions (IIFE) like:
> (function (a, b) {return a + b })(1, 2); // 3
> ((a,b) => (a+b))(1, 2); // 3