Hi Hugh, Here are cleaner versions of your resistors words.
First, the original version: : par ( R1 R2 -- R ) [ * ] [ + ] 2bi / ; inline : pars ( seq -- val ) [ ] [ par ] map-reduce ; The second version that uses the generalized equation: : pars ( seq -- val ) [ recip ] [ + ] map-reduce recip ; Slava On Mon, Oct 5, 2009 at 8:50 PM, Hugh Aguilar <[email protected]> wrote: > Well, I've taken a stab at writing some documentation comparing Factor to > Forth. Take a look at this (www.rosycrew.org/FactorVsForth.dvi) and let me > know if this is going in a direction that you think will be useful. > > Despite the title, I'm not allowing the book to become a "my language can > beat up your language" type of discussion. It is a pretty fair comparison, > IMHO. > > If you don't have a dvi viewer, let me know and I will convert it into > another format. Also, please excuse the primitive formatting. I was working > on Windows and I didn't have all of the packages that I am accustomed to > under Linux --- it can be made more professional looking later, but that is > not a high priority right now. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
