Is Swift dictionary of indexed for performance? Even for exotic types (UUID)?
<p>I want to construct some arrays that will remain in order to get fast searches.
If I use something like this:</p>

<pre><code>let dictionary: [Int:Int] = [:]
for i in 0 ..&lt; 10000000 {
    dictionary[i] = 0
}
</code></pre>

<p>Would the query:</p>

<pre><code>dictionary[n] == nil
</code></pre>

<p>be performed in logarithmic time?</p>

<p>If yes, is it the same for other types: Float, Double, String.</p>

<p>And finally, I need it to work with the UUID type, will it work?</p>