Skip to content

til

Syntax: til x,til[x]

First x natural numbers

Where x is a non-negative integer, returns the first x integers.

q)til 0
`long$()
q)til 1b
,0
q)til 5
0 1 2 3 4
q)til 5f
'type
  [0]  til 5f
       ^

Basics: Mathematics