Hello,
10 [ 1 + ] [ 1 + ] [ 1 + ] tri-chain
=> 11 12 13
The effect is:
: tri-chain ( x p q r -- p(x) q(p(x)) r(q(p(x))) )
bi-chain is similar. There'd be a general 'chain' which operates on a sequence
of quotations.
Along time ago when I was working on the cleavers, something like this had
occurred to me but I didn't have a need for it at the time. Doug Coleman then
independently proposed the idea and coded it up. One eyebrow went up.
Recently, I finally found a few use cases for it. The other eyebrow went up.
If it finds general usage and merits a shorter name, Slava proposed 'bi#'
and 'tri#'. Doug mentioned 'bi-' and 'tri-'.
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