title: How to get index of dictionary from an array of dictionary?
body: <p>I have an array of dictionaries:</p>
  
  <pre><code>var array = [["txt":"5mbps", "value": 2048],["txt":"50mbps", "value": 18048],["txt":"55mbps", "value": 22048]]
  </code></pre>
  
  <p>here, I want to get the <em>value</em> from that index of dictionaries, which <em>txt</em> is being selected. If I select 50mbps, how can i get that index and display the <em>value</em> of the same index .
  - Swift</p>