in reply to Fibonacci golf with one state variable
Without eval, without quotes, without explicit assignment and without arithmetic:
perl -lE 's//:o/;say length$1 while s/(.*):(.*)/$2:$1$2/'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Fibonacci golf with one state variable
by aufflick (Deacon) on Oct 05, 2008 at 11:54 UTC | |
by JavaFan (Canon) on Oct 05, 2008 at 13:21 UTC | |
by aufflick (Deacon) on Oct 06, 2008 at 03:13 UTC | |
Re^2: Fibonacci golf with one state variable
by ikegami (Patriarch) on Oct 05, 2008 at 12:18 UTC | |
Re^2: Fibonacci golf with one state variable
by ambrus (Abbot) on Oct 15, 2009 at 17:39 UTC |
In Section
Seekers of Perl Wisdom