Re: [Jprogramming] argument pairs

2018-01-08 Thread Devon McCormick
As a tip, a J expression never needs to end with a closing paren; to separate the '1' in ' ,."1 ' from the '6 3' in ' 6 3$ ', you can use "dex"="]": ,'abc' ,."1 ]6 3 $ 'defghijklmnopqrstu' On Mon, Jan 8, 2018 at 12:14 PM, Nick S wrote: > I tried things like ,"_1 1, and variations on that but I

Re: [Jprogramming] argument pairs

2018-01-08 Thread Nick S
I tried things like ,"_1 1, and variations on that but I didn't realize you could stack ranks like that, although I guess I should have. I guess that I understand very little about ranks, about all I know how to do reliably is to select columns instead of rows or compress a table in the non-defau

Re: [Jprogramming] argument pairs

2018-01-08 Thread Henry Rich
,. is equivalent to ,"_1 :    ,'abc' ,"_1"1 (6 3 $ 'defghijklmnopqrstu') adbecfagbhciajbkclambncoapbqcrasbtcu Did you try two ranks? Henry Rich On 1/8/2018 11:26 AM, Nick S wrote: I want to shuffle arrays, such that I pair them, a member of 1 with a member of the next, as: 'abc' ,"_1 'd

[Jprogramming] argument pairs

2018-01-08 Thread Nick S
I want to shuffle arrays, such that I pair them, a member of 1 with a member of the next, as: 'abc' ,"_1 'def' ad be cf ,'abc' ,"_1 'def' adbecf But what I want to do is to: so the same sort of pairing with this as a right argument: 6 3 $ 'defghijklmnopqrstu' Now, honestly, I had