Just one state variable? Re: Fibo Golf challenge on 3 monkeys has such an example:
ruby '-wep 1,x=1;18.times{p x=(x/0.618).round}'
It's not much longer than yours especially if you count that the second one needs a -l switch and fancy quoting to quote the apostrophes and double quotes.
In reply to Re: Fibonacci golf with one state variable
by ambrus
in thread Fibonacci golf with one state variable
by aufflick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |