title: Pattern matching key in Erlang maps
body: <p>I have a map of form shown below:</p>
  
  <pre><code>Map = #{#{country=&gt;"India"} =&gt; #{rank =&gt; 1}}.
  </code></pre>
  
  <p>I am trying to match it as follows:</p>
  
  <pre><code>1. #{Key := V} = Map.
  </code></pre>
  
  <p>or</p>
  
  <pre><code>2. #{#{country := Country} := #{rank := Rank}} = Map.
  </code></pre>
  
  <p>But its not working for me. Any help as to how it can be done? </p>