Skip to content

show

Format and display at the console.

Syntax: show x, show[x]

Formats x and writes it to the console; returns the identity function (::).

q)a:show til 5
0 1 2 3 4
q)a~(::)
1b

Display intermediate values


q)f:{a:x<5;sum a}
q)f 2 3 5 7 3
3
q)f:{show a:x<5;sum a}    / same function, showing value of a
q)f 2 3 5 7 3
11001b
3

Display
Basics: Debugging