I don't know what your fxy does, but i. will produce a table:

; <@i."1 (3 2 $ 2 3   4 3   1 3)
0 1 2
3 4 5
0 1 2
3 4 5
6 7 8
9 10 11
0 1 2


Henry Rich


On 12/17/2018 6:54 PM, Jimmy Gauvin wrote:
Hi,

found two solutions but is there a better way ?

; <@fxy"1 d17f

492 680

493 680

594 1545

595 1545

596 1545


; <&fxy"1 d17f

492 680

493 680
594 1545

595 1545

596 1545



On Mon, Dec 17, 2018 at 6:37 PM Jimmy Gauvin <[email protected]> wrote:

Hi,

I have a function that produces a 2 column table with a variable number of
lines depending on the input. Applying the function to each row of an input
table returns a three dimensional matrix with padding.

Is there a way to obtain a two-dimensional output without the padding ?

fxy"1 d17f

492 680

493 680

0 0


594 1545

595 1545

596 1545


Thanks,


Jimmy

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



---
This email has been checked for viruses by AVG.
https://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to