Null type

Null type. Has only one instance, null

Direct parent types

NoData
Absence of data
Direct subtypes: 2

Constructors

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

Returns

null

Methods

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

Returns

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

Returns

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

Returns

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

Returns

Str
echo_cli(n:Null)experimental Source: stdlib.ngs:8230
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:5899
Throw exception whend redirecting to/from null
JsonData(n:Null) Source: stdlib.ngs:7255
Convert Null into JSON compatible data structure - null
Str(n:Null) Source: stdlib.ngs:4325
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.