Skip to content

Commit 22b3590

Browse files
committed
Iterator
1 parent 0648840 commit 22b3590

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

README.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -199,27 +199,6 @@ from itertools import islice, count, repeat, cycle, chain
199199
<iter> = islice(<collection>, from_inclusive, to_exclusive, step_size)
200200
```
201201

202-
### Examples
203-
#### Reads input until it reaches an empty line:
204-
```python
205-
for line in iter(input, ''):
206-
...
207-
```
208-
209-
#### Same, but prints a message every time:
210-
```python
211-
from functools import partial
212-
for line in iter(partial(input, 'Please enter value: '), ''):
213-
...
214-
```
215-
216-
#### Skips first item:
217-
```python
218-
next(<iter>)
219-
for element in <iter>:
220-
...
221-
```
222-
223202

224203
Generator
225204
---------

0 commit comments

Comments
 (0)