title: Find value of index in Map Array using string key
body: <p>In an array <code>map&lt;string, int&gt; bannd</code> such that each key (of type string) holds a number value, like this</p>
  <pre><code>+++++++++++++++
  key   |  value
  +++++++++++++++
  red   |   0
  blue  |   1
  orange|   3
  </code></pre>
  <p>etc...</p>
  <p>What is the optimal way to return the value of an index using the key?</p>
  <p>I already tried using find like this</p>
  <pre><code>band1 = band.find(&quot;a&quot;);
  </code></pre>
  <p>where a is the key value in the map, but it does not seem to be working.</p>