Frequently plumbing is easier to operate on a record rather than a set
of records. Most of us will resort to some kind of "sipping pipeline"
that operates on such a single set (rather than a stream of sets).

If you need something that will look at two adjacent records, it
sometimes helps to do this:
 | dup | drop | join , , |
Now it's easy to remove the record that has "apple prune" since that
represents an apple followed by a prune. After you removed that, you
use a "spec w1" will get you the single item per record again.

Alternative would be this:
 | o: if between /apple/ 2 | pick w1 <> /prune/ | o: |

Clearly if you know there will be only one apple or one prune, things
get way easier...

Rob

Reply via email to