Re: [Factor-talk] Example of code cleanup

2008-04-01 Thread Eduardo Cavazos
> Slava, Eduardo has discovered something very interesting here. I got the idea from Manfred von Thun: http://www.latrobe.edu.au/philosophy/phimvt/joy/j01tut.html - Check out the new SourceForge.net Marketplace. It'

Re: [Factor-talk] Example of code cleanup

2008-04-01 Thread William Tanksley, Jr
Slava Pestov <[EMAIL PROTECTED]> wrote: > The last version does not have any shuffling other than drop, 2drop, > dup, and 2dup. Slava, Eduardo has discovered something very interesting here. I'm glad Factor is positioned to experiment so thoroughly with it (using it in so many modules). Now the

[Factor-talk] Example of code cleanup

2008-04-01 Thread Slava Pestov
Hi all, I just thought I'd share this with the list. Here is some ugly code in generic.standard: : (simplify-alist) ( class i assoc -- default assoc ) 2dup length 1- = [ nth second { } rot drop ] [ 3dup >r 1+ r> nth first class< [ >r 1+ r> (simplify-alis