<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<div><span></span></div>
<div>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(112, 61, 170);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">public</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">class</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);"> Container2:
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">RandomAccessCollection</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">{</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">public</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">typealias</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);"> Indices =
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">DefaultRandomAccessIndices</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);"><</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(148, 33, 146);">Container2</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);">>;</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(186, 45, 162);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">public</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">typealias</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);"> Index =
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(121, 121, 121);">Int</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);">;</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(237, 132, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">//typealias SubSequence
= Container2;</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">public</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">var</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"> arr:[</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(121, 121, 121);">Int</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">]
= [</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(2, 47, 146);">1</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">,</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(2, 47, 146);">2</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">,</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(2, 47, 146);">3</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">,</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(2, 47, 146);">4</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">,</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(2, 47, 146);">5</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">];</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255); min-height: 16.1px;">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">public</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">var</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"> endIndex:
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(148, 55, 255);">Index</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"> {</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255); min-height: 16.1px;">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(186, 45, 162);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">return</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(2, 47, 146);">5</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);">;</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span>}</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255); min-height: 16.1px;">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">public</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">var</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"> startIndex:</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(148, 55, 255);">Index</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">{</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(186, 45, 162);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">return</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(2, 47, 146);">0</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);">;</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span>}</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255); min-height: 16.1px;">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">public</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">func</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"> index(after i:
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(121, 121, 121);">Int</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">) ->
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(121, 121, 121);">Int</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">{</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">return</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">
i+</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(2, 47, 146);">1</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">;</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span>}</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255); min-height: 16.1px;">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255); min-height: 16.1px;">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255); min-height: 16.1px;">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">public</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">subscript</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">(position:
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(121, 121, 121);">Int</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">) ->
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(121, 121, 121);">Int</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">{</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">get</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">{</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">return</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(148, 82, 254);">arr</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">[position];</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span>}
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">set</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">{</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(148, 82, 254);">arr</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">[position]
= newValue;</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span>}</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span>}</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255); min-height: 16.1px;">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(237, 132, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">/*func index(before
i: Int) -> Int{</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(237, 132, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span>return i-1;</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(237, 132, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span>}*/</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255); min-height: 16.1px;">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">public</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">subscript</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">(bounds:
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(121, 121, 121);">Range</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(121, 121, 121);">Int</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">>)
-> </span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(148, 33, 146);">Container2</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">{</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">get</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">{</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(148, 33, 146);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);"><span class="Apple-tab-span" style="white-space:pre"></span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">return</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);">
</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">Container2</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(4, 51, 255);">();</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span>}<span class="Apple-tab-span" style="white-space:pre">
</span></span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures; color: rgb(186, 45, 162);">set</span><span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">{</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255); min-height: 16.1px;">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span>}</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span>}</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255); min-height: 16.1px;">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space:pre"></span></span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255);">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;">}</span></p>
<p style="margin: 0px; font-size: 14px; line-height: normal; font-family: Helvetica; color: rgb(4, 51, 255); min-height: 16.1px;">
<span style="font-size: 14pt; font-variant-ligatures: no-common-ligatures;"></span><br>
</p>
</div>
<div><span style="background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);">I'm trying to adopt the RandomAccessCollection protocol from a class. I deliberately leave out the </span><code style="background-color: rgba(255, 255, 255, 0); margin: 0px; padding: 1px 5px; border: 0px;">func
index(before:)</code><span style="background-color: rgba(255, 255, 255, 0);"> function because there is already a default implementation of that function in RandomAccessCollection. I do understand that that function's implementation is required because of
BiDirectionalCollection from which RandomAccessCollection inherits. </span></div>
<div>
<div><span style="background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);">My question is why would the compiler complain that func index(before:) implementation is required when there is already a default implementation in RandomAccessCollection that i can use? </span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div><span style="background-color: rgba(255, 255, 255, 0);">Thanks.</span>
<div></div>
</div>
</div>
</body>
</html>