Null type

Null type. Has only one instance, null

Direct parent types

NoData
Absence of data
Direct subtypes: 2

Methods

==(a:Null, b:Any) Source: stdlib.ngs:1364
Compare to null

Returns

false
==(a:Any, b:Null) Source: stdlib.ngs:1368
Compare to null

Returns

false
==(a:Null, b:Null) Source: stdlib.ngs:1372
Compare to null

Returns

true
Box(n:Null) Source: stdlib.ngs:2791
Convert null to Box (always EmptyBox)

Returns

EmptyBox

Example

Box(null).map(X*2).get()  # InvalidArgument exception (in "get()")
code(n:Null) Source: stdlib.ngs:5602
Convert null to NGS code that would produce null when executed.

Returns

Str
Str(n:Null) Source: stdlib.ngs:3229
Convert Null to string

Returns

the string "null"
StrForTable(x:Null) Source: autoload/Table.ngs:17
Internal method. Please do not use.
StrForTable(x:Null, width:Int) Source: autoload/Table.ngs:20
Internal method. Please do not use.