Null?: Difference between revisions

From The K Language Wiki
Content added Content deleted
("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
("Whitespace")
 
Line 8: Line 8:


{| class="wikitable"
{| class="wikitable"
! rowspan="2" |Type
! rowspan="2" |Type
! colspan="4" |Null
! colspan="4" |Null
|-
|-

Latest revision as of 19:37, 9 July 2022

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)