On Thu, Dec 9, 2010 at 12:39 AM, Rob van der Heij <[email protected]> wrote:

>    | sort ..
>    | strliteral cond /:0 DELETE */
>    | x: if take | subcom xedit | xedit | x:

As you guess, 'if' is my favorite after 'lookup' ;-)  If that style
bothers you, the traditional approach would be like

  \ xedit
  | sort
  | o: fanout
  | take
  | spec /:0 del */
  | subcom xedit
  \ o:
  | xedit

The records only come out of 'sort' when all data has been read and
sorted. The 'fanout' ensures that first the 'del *' is written, then
the records get to 'xedit'

| Rob

Reply via email to