Apparently-to: ROGER HUI
Subject: APL SOLUTION NEEDED
From: donald.mcintyre@almac.co.uk (Donald Mcintyre)
Date: Mon, 21 Mar 94 13:46:00 +0000
Organization: ALMAC: Scotland : +44 (0)324 665371

RH> In addition to the J solutions that Professor McIntyre provided,
RH> simplifications are possible if some additional assumptions can be
RH> made. For example, if you can assume that cr lf always occur as a
RH> pair and not individually, and that the string always terminates
RH> with a cr lf, then the following solution suffices:

RH> }: ;. _2

Bravo! How beautiful!

Roger Hui is too kind in his reference to my solution. Whereas I got rid
of lf and cr in two separate steps, Roger does this in one. And Roger's
solution - once pointed out - is so simple!

Perhaps my use of boxes will help a newcomer understand the cut
conjunction, but boxes are not needed. Successive use of > and <
calls for a simplification. Thanks, Roger, for including it in your
helpful exposition.

 * RM 1.2 01091 * donald.mcintyre@almac.co.uk
