Thanks Peter, that got me there.

I added this bit of code to make it count the number
of rows that would be output for the reshape verb
(since I don't know that from the outset).

I always end up using [: a lot when I write tacit
programs. Out of interest, does anyone know a cleaner
way to write the tacit expression below?

 ( (([: +/[: > [: #&.> ]),2:) $ [: ;[:; ]) (<10
20);<(3 4;<1 2)

Cheers,
Matthew.

--- Peter Vingron <[EMAIL PROTECTED]> wrote:

> Hallo Mathew,
> 
> Is this of any help?:
> 
>    3 2$;;(<10 20);<(3 4;< 1 2)
> 
> regards,
> Peter
> 
> 
> Matthew Brand schrieb:
> > 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.
> >
> > Thanks,
> > Matthew.
> >
> >
> >      
>
__________________________________________________________
> > Sent from Yahoo! Mail.
> > A Smarter Inbox.
> http://uk.docs.yahoo.com/nowyoucan.html
> >
>
----------------------------------------------------------------------
> > For information about J forums see
> http://www.jsoftware.com/forums.htm
> >
> >   
> 
>
----------------------------------------------------------------------
> For information about J forums see
> http://www.jsoftware.com/forums.htm
> 



      ___________________________________________________________ 
Rise to the challenge for Sport Relief with Yahoo! For Good  

http://uk.promotions.yahoo.com/forgood/
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to