Null type

Null type. Has only one instance, null

Direct parent types

NoData
Absence of data
Direct subtypes: 2

Constructors

Null() Source: stdlib.ngs:461
Make null

Returns

null

Methods

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

Returns

true
Box(n:Null) Source: stdlib.ngs:4319
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:7839
Convert null to NGS code that would produce null when executed.

Returns

Str
echo_cli(n:Null)experimental Source: stdlib.ngs:8910
Do nothing, when the value, which is a Null, is a result of evaluating the whole program
init(r:CommandRedir, fd:Any, marker:Any, datum:Null) Source: stdlib.ngs:6341
Throw exception whend redirecting to/from null
init(c:_Cell, val:Null)
A null value is a table cell with one row, "-"
JsonData(n:Null) Source: stdlib.ngs:7842
Convert Null into JSON compatible data structure - null
Str(n:Null) Source: stdlib.ngs:4735
Convert Null to string

Returns

the string "null"
StrForTable(x:Null)
Internal method. Please do not use.
StrForTable(x:Null, width:Int)
Internal method. Please do not use.