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
parent
commit
5d9800a72d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
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>:
...
```

Loading…
Cancel
Save