Hello,
In order to update the vocabularies using the short-circuit words, I stuck to
a simple translation of && -> 0&& and || -> 0||. There are a few places I
noticed where one of the arity variants would be applicable. For example,
from project-euler.021:
: amicable? ( n -- ? )
dup sum-proper-divisors
{ [ 2dup = not ] [ 2dup sum-proper-divisors = ] } 0&& 2nip ;
Using 2&&, this could be:
: amicable? ( n -- ? )
dup sum-proper-divisors
{ [ = not ] [ sum-proper-divisors = ] } 2&& ;
I didn't want to modify other folks code too much so I'll leave these kinds of
cleanups up to y'all.
Ed
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk