Hi Ric,

Just curious ... what do you mean by "scattered indexing"?

:)

r/alex

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sherlock, Ric
Sent: Wednesday, August 27, 2008 4:05 PM
To: Programming forum
Subject: RE: [Jprogramming] selection n00bness

---Alex Rufon wrote:
> I got it by doing:
>    (<1 2; 2 4 3) { i. 10 10
> 12 14 13
> 22 24 23

That's the nicest way to get blocks, but scattered indexing is also
possible so these will work too:
   ({1 2;2 4 3){i. 10 10
12 14 13
22 24 23
   (1 2 ,&.>"0 1 ] 2 4 3) { i. 10 10
12 14 13
22 24 23

----------------------------------------------------------------------
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