diff --git a/README.md b/README.md index fc48243..86734a2 100644 --- a/README.md +++ b/README.md @@ -182,12 +182,6 @@ from itertools import islice, count, repeat, cycle, chain = next( [, default]) # Raises StopIteration or returns 'default' on end. ``` -```python - = islice(, to_exclusive) - = islice(, from_inclusive, to_exclusive) - = islice(, from_inclusive, to_exclusive, step_size) -``` - ```python = count(start=0, step=1) # Returns incremented integer endlessly. = repeat( [, times]) # Returns element endlessly or 'times' times. @@ -199,6 +193,12 @@ from itertools import islice, count, repeat, cycle, chain = chain.from_iterable() # Empties collections inside a collection in order. ``` +```python + = islice(, to_exclusive) + = islice(, from_inclusive, to_exclusive) + = islice(, from_inclusive, to_exclusive, step_size) +``` + ### Examples #### Reads input until it reaches an empty line: ```python