Dan
Dan

Reputation: 13412

Building a list in KDB+ / q

In KDB+/q how can I get a list of lists using the til function? Simply passing a list to til is insufficient as it gives a 'type error;

q) til 2 3
'type

My desired output from the above would be

q) til something 2 3
1 2
1 2 3

How does one acheive this?

Upvotes: 3

Views: 332

Answers (1)

skeevey
skeevey

Reputation: 641

Use each to achieve this

q) til each 2 3
0 1
0  1 2

Upvotes: 3

Related Questions