in reply to (tye)Re: Golf: Tree searching
in thread Golf: Tree searching
(Or 57 if you add my to kill side effects. Still better than anything I thought of.)sub f{ ($s,$t)=@_;$t=$$t{$$t{d}gt$s?l:r}while$t&&$$t{d}ne$s;$t }
Note that this is much less readable than what tye wrote, but every transformation is fairly mechanical compression of the code...
|
---|
Replies are listed 'Best First'. | |
---|---|
(tye)Re2: Golf: Tree searching
by tye (Sage) on Apr 20, 2001 at 09:44 UTC |