At least two different ways:

   x=: (<10 20);<(3 4;< 1 2)
   ] S: 0 x
10 20
 3  4
 1  2
   > ; x
10 20
 3  4
 1  2



----- Original Message -----
From: Matthew Brand <[EMAIL PROTECTED]>
Date: Wednesday, February 27, 2008 10:00
Subject: [Jprogramming] boxed data manipulation
To: [email protected]

> Hi All,
> 
> How can I get pairs of numbers which are in boxes like
> this:
> (<10 20);<(3 4;< 1 2)
> 
> out into an array that looks like this:
> 3 2 $ 10 20 3 4 1 2
> 
> The contents of each box are x,y data points that I
> want to lump together and model. 
> 
> The number of levels/structure is always as in the
> example, that is a list of boxes where each box
> contains a list of boxes where the boxes contain a
> list of 2 numeric atoms.



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

Reply via email to