exhaust
Exhaust an iterator or stream.
def exhaust(
stream_or_iterable: iterable or stream
) - > null
Exhaust an iterator or stream.
Parameters
| Name | Type | Description |
|---|---|---|
| stream_or_iterable | iterable or stream | The data source to be fully consumed, which can be a standard Python iterable or a stream-like object. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned as the function's purpose is to consume the input for its side effects. |