Skip to content

Commit d76b3b6

Browse files
committed
Iterator
1 parent 744c360 commit d76b3b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ from itertools import count, repeat, cycle, chain, islice
195195
```
196196

197197
```python
198-
<iter> = chain(<coll.>, <coll.>, ...) # Empties collections in order.
198+
<iter> = chain(<coll.>, <coll.> [, ...]) # Empties collections in order.
199199
<iter> = chain.from_iterable(<collection>) # Empties collections inside a collection in order.
200200
```
201201

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ <h2 id="iterator"><a href="#iterator" name="iterator">#</a>Iterator</h2>
283283
&lt;iter&gt; = repeat(&lt;el&gt; [, times]) <span class="hljs-comment"># Returns element endlessly or 'times' times.</span>
284284
&lt;iter&gt; = cycle(&lt;collection&gt;) <span class="hljs-comment"># Repeats the sequence indefinitely.</span>
285285
</code></pre>
286-
<pre><code class="python language-python hljs">&lt;iter&gt; = chain(&lt;coll.&gt;, &lt;coll.&gt;, ...) <span class="hljs-comment"># Empties collections in order.</span>
286+
<pre><code class="python language-python hljs">&lt;iter&gt; = chain(&lt;coll.&gt;, &lt;coll.&gt; [, ...]) <span class="hljs-comment"># Empties collections in order.</span>
287287
&lt;iter&gt; = chain.from_iterable(&lt;collection&gt;) <span class="hljs-comment"># Empties collections inside a collection in order.</span>
288288
</code></pre>
289289
<pre><code class="python language-python hljs">&lt;iter&gt; = islice(&lt;collection&gt;, to_exclusive)

0 commit comments

Comments
 (0)