Skip to content

Commit 589c7ae

Browse files
committed
MySequence
1 parent d1fb0de commit 589c7ae

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,8 @@ class MyCollection:
12061206

12071207
### Sequence
12081208
* **Only required methods are len() and getitem().**
1209-
* **Iter(), contains() and reversed() automatically work on any object that has getitem() defined.**
1209+
* **Iter() and contains() automatically work on any object that has getitem() defined.**
1210+
* **Reversed() automatically works on any object that has getitem() and len() defined.**
12101211
```python
12111212
class MySequence:
12121213
def __init__(self, a):

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,8 @@ <h3 id="collection">Collection</h3>
11211121
<h3 id="sequence">Sequence</h3>
11221122
<ul>
11231123
<li><strong>Only required methods are len() and getitem().</strong></li>
1124-
<li><strong>Iter(), contains() and reversed() automatically work on any object that has getitem() defined.</strong></li>
1124+
<li><strong>Iter() and contains() automatically work on any object that has getitem() defined.</strong></li>
1125+
<li><strong>Reversed() automatically works on any object that has getitem() and len() defined.</strong></li>
11251126
</ul>
11261127
<pre><code class="python language-python hljs"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MySequence</span>:</span>
11271128
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">__init__</span><span class="hljs-params">(self, a)</span>:</span>

0 commit comments

Comments
 (0)