[Jprogramming] Simple way of making a table?
Don Guinn
donguinn at pvtnetworks.net
Fri Mar 24 00:58:09 HKT 2006
Well, this does it, but I'm not sure what you are trying to accomplish.
'||',"1(>a),"1'||',"1(>b),"1'||'
||abc ||xyzxyz ||
||def ||xyz ||
||g ||xyz ||
||hijkl||xyzxyz ||
||mn ||xyzxyzxyz||
June Kim wrote:
>Sorry for any confusion I made.
>
>The result's separator between cells should be two vertical bars, ie. '||'
>
>So,
> a,&(]&.:>)b
>+-----+---------+
>|abc |xyzxyz |
>|def |xyz |
>|g |xyz |
>|hijkl|xyzxyz |
>|mn |xyzxyzxyz|
>+-----+---------+
>
>isn't what I'm looking for. It should be instead:
>
> a verticalbar b
>||abc ||xyzxyz ||
>||def ||xyz ||
>||g ||xyz ||
>||hijkl||xyzxyz ||
>||mn ||xyzxyzxyz||
>
>
>Suppose you are to copy and paste the result into the J wiki and also
>let it stay easy to modify when in edit mode.
>
>
>
>On 3/24/06, Miller, Raul D <rdmiller at usatoday.com> wrote:
>
>
>>p j wrote:
>>
>>
>>> a=.'abc';'def';'g';'hijkl';'mn'
>>> b=.'xyzxyz';'xyz';'xyz';'xyzxyz';'xyzxyzxyz'
>>> a,.b
>>>You see the table. What I want instead is, something like,
>>>
>>>
>>...
>>
>>I don't completely understand what you are asking for, even
>>with the visual example.
>>
>>Could you comment on how this differs from what you want?
>>
>> a,&(]&.:>)b
>>
>>Thanks,
>>
>>--
>>Raul
>>----------------------------------------------------------------------
>>For information about J forums see http://www.jsoftware.com/forums.htm
>>
>>
>>
>----------------------------------------------------------------------
>For information about J forums see http://www.jsoftware.com/forums.htm
>
>
>
>
More information about the Programming
mailing list