Browse Source

Itertools

pull/3/head
Jure Šorn 6 years ago
parent
commit
7725f31e22
1 changed files with 2 additions and 2 deletions
  1. 4
      README.md

4
README.md

@ -750,7 +750,7 @@ Itertools
from itertools import *
```
### Combinatoric Iterators
### Combinatoric iterators
```python
>>> combinations('abc', 2)
@ -790,7 +790,7 @@ from itertools import *
>>> compress('abc', [True, 0, 1])
['a', 'c']
islice([1, 2, 3], 1, None) # islice(<seq>, from_inclusive, to_exclusive)
>>> islice([1, 2, 3], 1, None) # islice(<seq>, from_inclusive, to_exclusive)
[2, 3]
>>> a = [{'id': 1, 'name': 'bob'},

Loading…
Cancel
Save