
2 Mar
2009
2 Mar
'09
3:18 p.m.
on Fri Feb 27 2009, Giovanni Piero Deretta <gpderetta-AT-gmail.com> wrote:
rng && rng2 | transformed(binary_fun())
you mean for the two ranges variant of transform?
Well first you can always do this:
zip(rng, rng2) | transformed (unpack(binary_fun())
zip(rng, rng2) | transform( unzip_args(binary_fun) )
obviating the need for a 2 range (or n-range) variant at all. Otherwise, may be an infix syntax would work (but it probably count as too much operator abuse [1]):
rng1 ^transformed(binary_fun())^ rng2 ;
I'm sorry, I can't understand that one. -- Dave Abrahams BoostPro Computing http://www.boostpro.com