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:
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
| Name | Type | Description |
|---|---|---|
value |
Value |
(unpack)() -> UnpackIter[Never]
Destructures as no items.
iter() -> UnpackIter[Never]
Returns this iterator.