Browse Source
Merge pull request #14 from tilboerner/patch-1
Fix element skipping for empty iterators
pull/21/head
Jure Šorn
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
README.md
|
|
@ -170,7 +170,7 @@ Iterator |
|
|
|
|
|
|
|
#### Skips first element: |
|
|
|
```python |
|
|
|
next(<iter>) |
|
|
|
next(<iter>, None) # default of `None` avoids exception for empty <iter> |
|
|
|
for element in <iter>: |
|
|
|
... |
|
|
|
``` |
|
|
|