diff --git a/README.md b/README.md index 3a1f13d..020bab5 100644 --- a/README.md +++ b/README.md @@ -1138,10 +1138,10 @@ class MyAbcSequence(collections.abc.Sequence): return self.a[i] ``` -#### Table of provided methods: +#### Table of the methods that each (duck) type provides: ```text +------------+----------+------------+----------+--------------+ -| | iterable | collection | sequence | abc.Sequence | +| | Iterable | Collection | Sequence | abc.Sequence | +------------+----------+------------+----------+--------------+ | iter() | yes | yes | yes | yes | | len() | | yes | yes | yes | diff --git a/index.html b/index.html index 1f00f4b..8f19505 100644 --- a/index.html +++ b/index.html @@ -1070,9 +1070,9 @@ Z = dataclasses.make_dataclass(<span class="hljs-string">'Z'</span>, [<span clas <span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">__getitem__</span><span class="hljs-params">(self, i)</span>:</span> <span class="hljs-keyword">return</span> self.a[i] </code></pre> -<h4 id="tableofprovidedmethods">Table of provided methods:</h4> +<h4 id="tableofthemethodsthateachducktypeprovides">Table of the methods that each (duck) type provides:</h4> <pre><code class="text language-text">┏━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━┓ -┃ │ iterable │ collection │ sequence │ abc.Sequence ┃ +┃ │ Iterable │ Collection │ Sequence │ abc.Sequence ┃ ┠────────────┼──────────┼────────────┼──────────┼──────────────┨ ┃ iter() │ ✓ │ ✓ │ ✓ │ ✓ ┃ ┃ len() │ │ ✓ │ ✓ │ ✓ ┃ diff --git a/parse.js b/parse.js index e0ba51f..ffc7cb5 100755 --- a/parse.js +++ b/parse.js @@ -142,7 +142,7 @@ const DIAGRAM_5_B = const DIAGRAM_6_A = '+------------+----------+------------+----------+--------------+\n' + - '| | iterable | collection | sequence | abc.Sequence |\n' + + '| | Iterable | Collection | Sequence | abc.Sequence |\n' + '+------------+----------+------------+----------+--------------+\n' + '| iter() | yes | yes | yes | yes |\n' + '| len() | | yes | yes | yes |\n' + @@ -152,7 +152,7 @@ const DIAGRAM_6_A = const DIAGRAM_6_B = '┏━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n' + - '┃ │ iterable │ collection │ sequence │ abc.Sequence ┃\n' + + '┃ │ Iterable │ Collection │ Sequence │ abc.Sequence ┃\n' + '┠────────────┼──────────┼────────────┼──────────┼──────────────┨\n' + '┃ iter() │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + '┃ len() │ │ ✓ │ ✓ │ ✓ ┃\n' + diff --git a/web/script_2.js b/web/script_2.js index 22cdc65..c12755e 100644 --- a/web/script_2.js +++ b/web/script_2.js @@ -110,7 +110,7 @@ const DIAGRAM_5_B = const DIAGRAM_6_A = '+------------+----------+------------+----------+--------------+\n' + - '| | iterable | collection | sequence | abc.Sequence |\n' + + '| | Iterable | Collection | Sequence | abc.Sequence |\n' + '+------------+----------+------------+----------+--------------+\n' + '| iter() | yes | yes | yes | yes |\n' + '| len() | | yes | yes | yes |\n' + @@ -120,7 +120,7 @@ const DIAGRAM_6_A = const DIAGRAM_6_B = '┏━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n' + - '┃ │ iterable │ collection │ sequence │ abc.Sequence ┃\n' + + '┃ │ Iterable │ Collection │ Sequence │ abc.Sequence ┃\n' + '┠────────────┼──────────┼────────────┼──────────┼──────────────┨\n' + '┃ iter() │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + '┃ len() │ │ ✓ │ ✓ │ ✓ ┃\n' +