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:1493
Compare to null

Returns

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

Returns

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

Returns

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

Returns

EmptyBox

Example

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

Returns

Str
Str(n:Null) Source: stdlib.ngs:3374
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.