-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Sherlock, Ric" <[email protected]> writes:

> Here are a number of different ways, none of them as nice and simple
> as Henry's.  But they show how you can build a left argument for { to
> give you what you want.

That may help me, actually.

>    ((<0;(i.3);2),(<1;(i.2);2),(<2;(i.4);2)){a
>  2  7 12  0
> 22 27  0  0
> 42 47 52 57

I thought of that one, but I was trying to avoid enumerating each
table (there are at least 10).

>    (<"1((i.3);2),((i.2);2),:((i.4);2)){"0 2 a
>  2  7 12  0
> 22 27  0  0
> 42 47 52 57

Nifty use of rank!

>    (<@(2 ;~ i.)"0 ] 3 2 4) {"0 2 a
>  2  7 12  0
> 22 27  0  0
> 42 47 52 57

I like this: nifty rank usage plus the numbers I need to provide (3 2 4)
all stuck together.

>    (<@(2 ;~ i.)"0 ] 3 2 4) <@{"0 2 a
> +------+-----+-----------+
> |2 7 12|22 27|42 47 52 57|
> +------+-----+-----------+

Nice, too, for I can also count the number of valid datapoints that way.

Thanks, Ric.

Bill
- -- 
Bill Harris                      http://facilitatedsystems.com/weblog/
Facilitated Systems                              Everett, WA 98208 USA
http://facilitatedsystems.com/                  phone: +1 425 337-5541
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkofUCwACgkQ3J3HaQTDvd+w4ACdEx48k3XMmXAEGFsCQKWVsLGy
D90AnAgqftgpIOILwRIng7wXZ2ihPF+t
=qZp5
-----END PGP SIGNATURE-----
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to