in reply to Fibonacci golf with one state variable
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Fibonacci golf with one state variable
by aufflick (Deacon) on Oct 05, 2008 at 11:56 UTC | |
by ambrus (Abbot) on Oct 05, 2008 at 12:25 UTC |