Hi.

It's not that simple. I need to apply a verb on each item of the vector and box 
them individually. :)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eldon Eller
Sent: Saturday, June 28, 2008 1:40 AM
To: Programming forum
Subject: Re: [Jprogramming] Formatting then Boxing a vector

  A=: 6 7 8 9 10 11 12 13
;/A
┌─┬─┬─┬─┬──┬──┬──┬──┐
│6│7│8│9│10│11│12│13│
└─┴─┴─┴─┴──┴──┴──┴──┘


Alex Rufon wrote:
> Hi.
>
> I have no excuse but I couldn't seem to get this to work. I'm currently
> applying a learning curve to a production plan and I encountered this
> problem.
>
> I have a list of numbers:
> A=: 6 7 8 9 10 11 12 13
>
> I need to convert them to a formatted boxed string like this:
> +--+--+--+--+--+--+--+--+
> |06|07|08|09|10|11|12|13|
> +--+--+--+--+--+--+--+--+
>
> I know I can do it this way:
>    < 'r<0>2.0' (8!:2) 6
> +--+
> |06|
> +--+
>
> When get the wrong results when I try to do it this way:
>    < 'r<0>2.0' (8!:2) A
> +----------------+
> |0607080910111213|
> +----------------+
>
>     'r<0>2.0' (8!:2) each A
> |length error
> |   'r<0>2.0'    (8!:2)each A
>
>    'r<0>2.0' (8!:2) box every A
> 0607080910111213
>
>    'r<0>2.0' (8!:2) each box every A
> |length error
> |   'r<0>2.0'    (8!:2)each box every A
>
> Of course I could just use a for_xyz. Loop and be done with it but its
> irking me that I can't seem to make it work. 
>
>   
> Thanks for the help.
>
> r/Alex
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
>   

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

Reply via email to