If I am to split a list into 2 rows, I can use:
q)2 0N#til 10
However, the following syntax does not work:
q)n:2
q)n 0N#til 10
how I can achieve such reshaping?
If I am to split a list into 2 rows, I can use:
q)2 0N#til 10
However, the following syntax does not work:
q)n:2
q)n 0N#til 10
how I can achieve such reshaping?
Need brackets and semi colon
Here is the general syntax to split a list in matrix form:
As you can see, left part and right part of '#' is list. So here is one example:
We can make an integer list in 2 way:
But when you have variable, option 2 doesn't work;
So for your question, solution is to use semicolon to create list: