In Python.
>>> (lambda x: x + 1)(1) 2
Javascript
> (function (x){return x + 1;})(1) 2
I was impressed by the similarities.
Recommended Posts