Browse Source

Islice

pull/10/head
Jure Šorn 5 years ago
parent
commit
b1ece6c332
1 changed files with 2 additions and 1 deletions
  1. 3
      README.md

3
README.md

@ -1027,7 +1027,8 @@ from itertools import *
>>> compress('abc', [True, 0, 1])
['a', 'c']
>>> islice([1, 2, 3], 1, None) # islice(<seq>, from_inclusive, to_exclusive)
>>> # islice(<seq>, from_inclusive, to_exclusive)
>>> islice([1, 2, 3], 1, None)
[2, 3]
>>> people = [{'id': 1, 'name': 'Bob'},

Loading…
Cancel
Save