[Jprogramming] Just for fun, verb cross

Linda Alvord lindaalvord at verizon.net
Tue Dec 11 00:41:22 UTC 2012


   ((+.|.)@={"0 1 ' '&,.)'apple'
|length error
|       ((+.|.)@={"0 1' '&,.)'apple'

I think the letters must be in alphabetical order.

Linda

-----Original Message-----
From: programming-bounces at forums.jsoftware.com
[mailto:programming-bounces at forums.jsoftware.com] On Behalf Of bob
therriault
Sent: Monday, December 10, 2012 1:18 PM
To: programming at jsoftware.com
Subject: Re: [Jprogramming] Just for fun, verb cross

That is lovely Arie,

It is that kind of elegance that I was chasing with my rougher attempts. 

Using the (+.|.) hook simplifies (|.+.]) precisely and the {" 0 1  combined
with ' '&,. means that the selection of the string becomes a choice in each
row of displaying either the corresponding element of the string or a blank.


Cheers, bob

On 2012-12-10, at 1:11 AM, Aai wrote:

>  ((+.|.)@={"0 1 ' '&,.)'abcde'

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm



More information about the Programming mailing list