[Jprogramming] selection n00bness
Alex Rufon
alex_rufon at ist-systems.com
Wed Aug 27 16:35:02 HKT 2008
Hi Ric,
Just curious ... what do you mean by "scattered indexing"?
:)
r/alex
-----Original Message-----
From: programming-bounces at jsoftware.com
[mailto:programming-bounces at jsoftware.com] 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
More information about the Programming
mailing list