null?

From The K Language Wiki
Revision as of 19:37, 9 July 2022 by Promovicz (talk | contribs) ("Whitespace")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Null?
^x
Supported in k4, oK, ngn/k
Not supported ink3, kona, k7, k9

The null primitive returns a value indicating whether its argument is a null value or not. It is right atomic.

Each atomic type has a distinguished null value used to represent missing data.

Type Null
oK k7 k9 other
int 0N Ø 0 0N
float ø 0.0 0n
char " "
symbol `
function N/A special

value

of type `

::
 ^(0;0N;`;(0n;" ";{}))
(0
 1
 1
 1 1 0)