On 09/13/2011 09:42 AM, DUGALEIX Michaël wrote:
> Could you give a more concrete example please ?
> I don't understand how you're using the "1:", "2:" and "fanout"s .
>>   (end /) ... | 2: fanout | 1: fanout / 2: | ... / 1: | ...

The equivalent to Rob's example using NOT FANOUT would be:

  (end \) ... | 2: fanout | 1: fanout
    \ 2: | L: lookup fs _ f1.2 detail | cons
    \ L:
    \ 1: | unique fs _ f1 first | L:

The alternate output of 2: is equivalent to the primary output of NOT
FANOUT, and the alternate output of 1: is equivalent to the alternate
output of NOT FANOUT.

Now suppose I was feeding several different LOOKUPs comparing different
columns.  Since NOT uses only two streams, I would need two more FANOUTs
to redirect the two copies of the file.  Doing it the old way, I'd only
use two FANOUTs total:

  (end \) ... | 2: fanout | 1: fanout
    \ 2: | L1: lookup ... \ L1: \ 1: | ... | L1:
    \ 2: | L2: lookup ... \ L2: \ 1: | ... | L2:
    \ 2: | L3: lookup ... \ L3: \ 1: | ... | L3:

¬R

Reply via email to