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[Empty], Sink[Value]

Methods

(next)()

Ends the iteration immediately without yielding a value.

(put) value

Discards the value.