title: Scala Map Option
body: <p>I have a map in scala like this.</p>
  
  <pre><code>val someData = Some(Map(genderKey -&gt; gender,agekey -&gt; age))
  </code></pre>
  
  <p>How to get the output as: </p>
  
  <pre><code> val key= genderkey 
   val value= gender
   val key2 =  agekey (Dynamic variable name)
   val value2= age (Dynamic variable name)
  </code></pre>