'should' might be an overstatement, considering the expense of
boxing small boxes.
ts '> { (i.1000);i.1000'
0.611726 8.06883e7
ts '(i.1000),"0/i.1000'
0.096345 8.41888e6
Henry Rich
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Dan Bron
> Sent: Friday, September 22, 2006 11:55 AM
> To: General forum
> Subject: RE: [Jgeneral] I expect a table of ordered pairs for this
>
> Furthermore, if you want a Cartesian product, you should use
> monad { (which is defined to produce one). Thus:
>
>
> ]cp=:{ (i.3);i.3
> +---+---+---+
> |0 0|0 1|0 2|
> +---+---+---+
> |1 0|1 1|1 2|
> +---+---+---+
> |2 0|2 1|2 2|
> +---+---+---+
> >cp
> 0 0
> 0 1
> 0 2
>
> 1 0
> 1 1
> 1 2
>
> 2 0
> 2 1
> 2 2
>
>
> -Dan
> ----------------------------------------------------------------------
> For information about J forums see
> http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm