[Jprogramming] Catenating columns.
'robert therriault' via Programming
programming at jsoftware.com
Tue Dec 6 21:59:37 UTC 2022
Hi Skip,
I think that I would start with this entry from J for C Programmers, although you might need to read the entire chapter to get the context of the dyad rank section.
https://www.jsoftware.com/help/jforc/loopless_code_i_verbs_have_r.htm#_Toc191734341
Cheers, bob
> On Dec 6, 2022, at 13:49, 'Skip Cave' via Programming <programming at jsoftware.com> wrote:
>
> Elijah,
> that's what I want!
>
> 54 48,"_ 0 i.10
>
> 54 48 0
>
> 54 48 1
>
> 54 48 2
>
> 54 48 3
>
> 54 48 4
>
> 54 48 5
>
> 54 48 6
>
> 54 48 7
>
> 54 48 8
>
> 54 48 9
>
>
> Where can I find the documentation on *,"_ 0 * ??
>
>
> Skip Cave
> Cave Consulting LLC
>
>
> On Tue, Dec 6, 2022 at 1:32 AM Elijah Stone <elronnd at elronnd.net> wrote:
>
>> ,. is ,"_1; in other words, catenate corresponding cells of each argument.
>> 54 48 has 2 cells, but i.10 has 10 cells; that doesn't work.
>>
>> Perhaps you want 54 48 ,"_ 0 i.10.
>>
>> On Tue, 6 Dec 2022, 'Skip Cave' via Programming wrote:
>>
>>> I can add a column of increasing integers to a fixed integer:
>>>
>>> 48,.i.10
>>>
>>> 48 0
>>>
>>> 48 1
>>>
>>> 48 2
>>>
>>> 48 3
>>>
>>> 48 4
>>>
>>> 48 5
>>>
>>> 48 6
>>>
>>> 48 7
>>>
>>> 48 8
>>>
>>> 48 9
>>>
>>>
>>> Now I want to add the same increasing column to *two* fixed integers:
>>>
>>> 54 48,.i.10
>>>
>>> |length error
>>>
>>> | 54 48 ,.i.10
>>>
>>>
>>> Why doesn't this work?
>>>
>>> Skip Cave
>>> Cave Consulting LLC
>>> ----------------------------------------------------------------------
>>> 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
More information about the Programming
mailing list