Jump to content

Null?: Difference between revisions

404 bytes added ,  2 years ago
no edit summary
(supported in)
No edit summary
Line 3:
|not=k3, kona, k7, k9}}
 
The '''null''' primitive returns a value indicating whether its argument is a null value or not. It is [[atomicity|right atomic]].
 
Each atomic type has a distinguished null value used to represent missing data.
The general null values for each datatype are:
 
* Integer: <code>0N</code>
{| class="wikitable"
* Float: <code>0n</code>
! rowspan="2" |Type
* Character: <code>" "</code>
! colspan="4" |Null
* Symbol: <code>`</code>
|-
!oK
!k7
!k9
!other
|-
|int
*| Integer:rowspan="3" |<code>0N</code>
* Float: |<code>0nØ</code>
|<code>0</code>||<code>0N</code>
|-
|float
|<code>ø</code>
|<code>0.0</code>|| <code>0n</code>
|-
|char
*| Character:colspan="3" |<code>" "</code>
|-
|symbol
*| Symbol:colspan="4" |<code>`</code>
|-
|function
|N/A
| colspan="2" |''special''
''value''
 
''of type <code>`</code>''
|<code>[[Identity function|::]]</code>
|}
 
<pre>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.