Skip to content

Null

Acts as an empty iterator and a sink that discards every value.

The std.null singleton is the only Null value. Use it to provide an empty input or discard output:

run tool stdin: $null stdout: $null

Inherits from: Iter[Never], Sink[Value]

Implements: UnpackIter[Never]

Methods

(iter)() -> UnpackIter[Never]

Returns this iterator.

(next)() -> Never

Ends the iteration immediately without yielding a value.

(put) value

Discards the value.

Parameters

NameTypeDescription
value Value

(unpack)() -> UnpackIter[Never]

Destructures as no items.

iter() -> UnpackIter[Never]

Returns this iterator.