At 07:46  -0400 2007/06/24, Terrence Brannon wrote:
On 6/20/07, Devon McCormick <[EMAIL PROTECTED]> wrote:


I am now working on a paper for APL2007 in which I hope to provide examples
of the clarity loopless
programming provides compared to the more conventional variety -

Here's one from Ch. 4 of "Learning J" -

+/ text = LF    NB. count the linefeeds in the string

It's amazing how close that is to english:

+/   NB. add up
text = LF  NB. the places where text is linefeed

Staggering.


Time to attach an mp3 with the refrain from "My Fair Lady" -
but we'll have to do with the written verse...

Eliza: The rain in Spain stays mainly in the plain.
Higgins: I think she's got it. I think she's got it.
Eliza: The rain in Spain stays mainly in the plain.
Higgins: By George, she's got it. By George, she's got it. Now once again, where does it rain?
Eliza: On the plain! On the plain!
Higgins: And where's that soggy plain?
Eliza: In Spain! In Spain!
Chorus: The rain in Spain stays mainly in the plain!...
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to