# Iterator consumer
Sometimes, we need to consume an [[Iterator]] without the need to store or use the result anywhere. In order to
Take this [[Iterator]], for example:
```python
printer = map(print, input().split())
```
Only the [[Side Effect]] of this [[Iterator]] is valuable, as the return value of `print` is `None`. In order to consume an iterator, the `__next__` method must be called until it raise a `StopIteration`. To do that, we can use the
We simply want to through all its values. In the previous example
```python
import collections
collections.deque(printer, maxlen=0)
```
```python
for _ in printer:
pass
```
---
Bibliography:
- [Title - website.com](need bibliography)