Hey that's neat! Of course the memory usage is far from constant, but great idea. Good use of say to save a few.
Only nitpicks are that you do have explicit initialisation and the first output is zero which is not quite right. Oddly, I get no output unless I tweak it to print to STDERR which is some strange buffering difference - no idea why.
++ for thinking laterally :)
In reply to Re^2: Fibonacci golf with one state variable
by aufflick
in thread Fibonacci golf with one state variable
by aufflick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |