de> character in a string&#39;s character view.</p>

<pre><code class="language-swift">let name = &quot;Horatio&quot;
let aIndex = name.firstIndex(of: &quot;a&quot;)!
// name[aIndex] == &quot;a&quot;

let reversedName = name.reversed()
let i = ReversedIndex&lt;String&gt;(aIndex)
// reversedName[i] == &quot;r&quot;</code></pre>

<p>The element at the position created using <code>ReversedIndex&lt;...&gt;(aIndex)</code> is
<code>&quot;r&quot;</code>, the character before <code>&quot;a&quot;</code> in the <code