Keep numbers which appear in both columns, in J lang
Given a table with two columns:
How to use local variables in nested verbs?
Perhaps there’s no facility to do this in the J language, but when I write:
How to reshape an array with an arbitrary size in one dimension?
How would you go about reshaping a length-N
1D array into an (N/2) x 2
array? In numpy, for example, you can use -1
in place of N/2
when reshaping:
What does ‘m’ stand for in an inline function?
What’s going on that makes this code work? It seems that using m
in an anonymous verb (if that’s what it’s called) turns the verb into a postfix operator.