Browse Source

Itertools

pull/27/head
Jure Šorn 5 years ago
parent
commit
03cfac3253
1 changed files with 5 additions and 5 deletions
  1. 10
      README.md

10
README.md

@ -235,14 +235,14 @@ from itertools import islice, count, repeat, cycle, chain
```
```python
<iter> = count(start=0, step=1) # Counter.
<iter> = repeat(<el> [, times]) # Returns element endlesly or times times.
<iter> = cycle(<collection>) # Repeats the sequence indefinately.
<iter> = count(start=0, step=1) # Counter.
<iter> = repeat(<el> [, times]) # Returns element endlesly or times times.
<iter> = cycle(<collection>) # Repeats the sequence indefinately.
```
```python
<iter> = chain(<collection>, <collection> [, ...]) # Empties sequences in order.
<iter> = chain.from_iterable(<collection>) # Empties sequences inside a sequence in order.
<iter> = chain(<collection>, <collection>) # Empties sequences in order.
<iter> = chain.from_iterable(<collection>) # Empties sequences inside a sequence in order.
```

Loading…
Cancel
Save