It looks like one rank outranks another.

Linda

-----Original Message-----
From: programming-boun...@jsoftware.com
[mailto:programming-boun...@jsoftware.com] On Behalf Of Kip Murray
Sent: Tuesday, December 06, 2011 3:50 AM
To: Programming forum
Subject: Re: [Jprogramming] Turkey Roll - Challenge 2

Here is a puzzle.  Not wanting to explain was a reason for allowing in 
Simple J only one conjunction (rank) which I regarded as essential. 
However as a practical matter I like Henry's policy.  We should not pay 
too much attention to matters unlikely to arise, and @: is a nice way of 
combining a receiver and sender.

    ] a =: i. 3 2 4
  0  1  2  3
  4  5  6  7

  8  9 10 11
12 13 14 15

16 17 18 19
20 21 22 23

    ([: |: +/ " 2) a
  4 20 36
  6 22 38
  8 24 40
10 26 42

    (|: @: +/ " 2) a
  4  6  8 10
20 22 24 26
36 38 40 42

On 12/5/2011 9:08 PM, Henry Rich wrote:
...
>
> Let us use   [: u v    or  u@:v  as we like, and specify a rank when we
> need one.
>
> Henry Rich
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

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

Reply via email to