y-combinator in javascript
问题 I have built a y-combinator in js like this const y = f => { const g = self => x => f(self(self))(x); return g(g);} and I simplified this code like this const y = f => { const g = self => f(self(self)); return g(g);} this get an infinite recursion. What's the difference between these two versions? 回答1: If you don't understand the difference between the two, I would be surprised that you actually built them. Nevertheless, perhaps the best way to demonstrate the difference between the two, is