diff --git a/README.md b/README.md index 642248f..681f900 100644 --- a/README.md +++ b/README.md @@ -215,8 +215,8 @@ from itertools import count, repeat, cycle, chain, islice ``` ```python - = islice(, to_exclusive) - = islice(, from_inclusive, to_exclusive [, +step_size]) + = islice(, to_exclusive) # Only returns first 'to_exclusive' elements. + = islice(, from_inclusive, …) # `to_exclusive [, +step_size]`. ``` diff --git a/index.html b/index.html index f10667c..7d90139 100644 --- a/index.html +++ b/index.html @@ -370,8 +370,8 @@ to_exclusive = <range>.stop
<iter> = chain(<coll_1>, <coll_2> [, ...])  # Empties collections in order.
 <iter> = chain.from_iterable(<collection>)  # Empties collections inside a collection in order.
 
-
<iter> = islice(<collection>, to_exclusive)
-<iter> = islice(<collection>, from_inclusive, to_exclusive [, +step_size])
+
<iter> = islice(<coll>, to_exclusive)       # Only returns first 'to_exclusive' elements.
+<iter> = islice(<coll>, from_inclusive, …)  # `to_exclusive [, +step_size]`.
 

#Generator

  • Any function that contains a yield statement returns a generator.