News for hackers. Stuff that matters.
Re:Fixed-Point Combinator by tromp on Saturday February 24, 2024 @02:19PM (#39494345)
The fixed point of any function f = f (f (f (f ....

so for f(x)=1+x it is 1+ (1+ (1+ (1+ ... , an infinite sum.

This is correct in the sense that 1 + infinity = infinity, but in practice this could result in an infinite loop or stack overflow.

For f(x)=x+1 it's the reverse ...) +1) +1) +1 which behaves similarly.

There are no comments on this comment yet.