That doesn't look as impressive.
/ Martin Nilsson (saturator)
Previous text:
2003-10-06 20:43: Subject: Re: Some tasks from the conference
All you need is to first define this general but strange-looking function:
function Y(function f)
{ return lambda(mixed y) { return (lambda(function x, mixed w) { return f(lambda(mixed z) { return x(x, z); }, w); }) (lambda(function x, mixed w) { return f(lambda(mixed z) { return x(x, z); }, w); }, y); }; }
It took me quite a while to try to remember what the function looks like, and then write it in pike ;-)
Wouldn't this be easier:
function Y(function f) { function Z(mixed ... y) { return f(Z, @y); }; return Z; }
/ Fredrik (Naranek) Hubinette (Real Build Master)